[R] replacing backslashes with slashes using gsub

witek wolski at molgen.mpg.de
Mon May 24 15:57:48 CEST 2004


Hi!

I am trying to replace backslashes with slashes using gsub (R1.9.0 on XP)

gsub("\\\\","/","D:\Prog\R\rw1090\library\cluster\libs")
[1] "D:ProgR\rw1090libraryclusterlibs"

?

Sincerely Eryk




More information about the R-help mailing list