Dear R-helpers:

Hours ago, I asked how to replace a single forward slash with a double
backward slash and recieved great help. Thanks again for all the repliers.

In the meantime, I wonder how to replace a single backward slash with a
double backward slash?

e.g., I want change "c:\test" into "c:\\test"

I tried the following but does not work.
gsub("\\\","\\\\","c:\test")

Can someone help?

Thanks a lot in advance.

-Sean

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to