[R] Find and replace backslashes XXXX

Dan Abner dan.abner99 at gmail.com
Wed May 27 03:30:49 CEST 2015


Hi all,

I realize that the backslash is an escape character in R, therefore, I
am trying to replace it with a forward slash. Can someone please
suggest how to get this code to work?

> lib<-gsub("\","/","X:\Classes\TT\Automation")
Error: unexpected symbol in "lib<-gsub("\","/","X"


Thanks,

Dan



More information about the R-help mailing list