[R] Replacing backslashes with slashes

yvonnick noel yvonnick.noel at uhb.fr
Wed Jan 4 17:05:38 CET 2006


> It would work with
>
> gsub("\\\\","/","c:\\My Documents\\data.dat")
> [1] "c:/My Documents/data.dat"
>
> which of course is not your case :(

Absolutely. What I get from the interface is the string "c:\My
Documents\data.dat" and NOT the string "c:\\My Documents\\data.dat". That is
why the solutions previously proposed do not solve my problem (but thank you
for your replies !).

Yvonnick NOEL
U. of Rennes 2
FRANCE




More information about the R-help mailing list