[R] Misunderstanding escape (backslash)

Frank McCown fmccown at cs.odu.edu
Mon Oct 16 20:06:54 CEST 2006


Forgive my ignorance, but shouldn't '\\' be converted into '\' in my 
string?  In my output (below), you can see that '\\' remains '\\'.

 > term = "mother\'s day"
 > term
[1] "mother's day"
 > term = "mother\\\'s day"
 > term
[1] "mother\\'s day"      <--- should be "mother\'s day"


Thanks,
Frank



More information about the R-help mailing list