[R] changing single to double backslash

Cézar Freitas cafanselmo12 at yahoo.com.br
Wed May 17 15:14:26 CEST 2006


Hi, all. I didn't find something like this in the faq
list:

I wound like build a function to substitute single
backslashes in a string to double:
ChangeSlash<-function(dir) ...

so

ChangeSlash("C:\mydocs\test")

returns

"C:\\mydocs\\test"

Thanks,
C.




		
_______________________________________________________ 
Abra sua conta no Yahoo! Mail: 1GB de espaço, alertas de e-mail no celular e anti-spam realmente eficaz. 
http://br.info.mail.yahoo.com/




More information about the R-help mailing list