[R] Misunderstanding escape (backslash)

From: Frank McCown <fmccown_at_cs.odu.edu>
Date: Mon 16 Oct 2006 - 18:06:54 GMT

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



R-help@stat.math.ethz.ch 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. Received on Tue Oct 17 04:30:10 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Mon 16 Oct 2006 - 19:30:10 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.