[R] replacing backslashes with slashes using gsub

About this list Date view Thread view Subject view Author view Attachment view

From: witek (wolski@molgen.mpg.de)
Date: Mon 24 May 2004 - 23:57:48 EST


Message-id: <200405241557480231.011FF2F7@mail.math.fu-berlin.de>

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

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Mon 31 May 2004 - 23:05:12 EST