Java Mailing List Archive

http://www.r-help.com/

Home » Home (12/2007) » R Help for Statistical Computing »

[R] Misunderstanding escape (backslash)

Frank McCown

2006-10-16

Replies:

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@(protected)
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.
©2008 r-help.com - Jax Systems, LLC, U.S.A.