[R] changing single to double backslash

From: CÚzar Freitas <cafanselmo12_at_yahoo.com.br>
Date: Wed 17 May 2006 - 23:14:26 EST


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/

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed May 17 23:26:01 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 18 May 2006 - 00:10:17 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.