[R] impossible escape?
Charles Annis, P.E.
Charles.Annis at StatisticalEngineering.com
Wed Oct 11 19:30:37 CEST 2006
Greetings:
I've searched the R archives with no luck.
I want to print this to the screen as part of on-screen instructions as an
example:
default.FACTOR.labels <- c("Probe1", "Probe2", "Probe3")
I can't seem to trick gsub()
gsub("'", "\"", "default.FACTOR.labels <- c('Probe1', 'Probe2', 'Probe3'))")
[1] "default.FACTOR.labels <- c(\"Probe1\", \"Probe2\", \"Probe3\"))"
^ ^ ^ ^ ^ ^
which gives me \" rather than "
Is it possible to escape the " character?
Thanks.
Charles Annis, P.E.
Charles.Annis at StatisticalEngineering.com
phone: 561-352-9699
eFax: 614-455-3265
http://www.StatisticalEngineering.com
More information about the R-help
mailing list