[R] How to convert backslash to slash?

Shengqiao Li shli at stat.wvu.edu
Tue Sep 23 22:00:10 CEST 2008


How to use sub, gsub, etc. to replace "\" in a string to "/"?

For example,convert "C:\foo\bar" to "C:/foo/bar".

Thanks,

Shengqiao Li



More information about the R-help mailing list