[R] Quoting underscores in variable names
Edward C. Lang
edward.lang at anu.edu.au
Fri Sep 21 07:34:41 CEST 2001
(please Cc: me in replies, as I am not on the r-help list)
Hi,
I have discovered that underscores are not allowed in variable names,
although this is not by any means the first instance of such a
discovery. Short of going through all my other data, and removing
underscores, is it possible to quote underscores in R? I had something like:
> plot(g\_code ~ sp\_code, data=genes)
Error: syntax error
in mind, but obviously that does not work.
Any thoughts/ideas appreciated.
Regards,
Edward.
--
Edward C. Lang: edward.lang at anu.edu.au | ___ ___ _ ___ |
Programmer at the Centre for Bioinformation Science | / __| _ |_) __| |
Telephone: +61 2 6125 4717 | | (__| _ \ \__ \ |
Postal: JCSMR, GPO Box 334 Canberra ACT 2601 | \___|___/_|___/ |
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list