[R] make.names() does not return what is expected

Xavier Fernández i Marín xavier.fim at menta.net
Wed Jul 27 14:17:19 CEST 2005


Hello,

I don't know if it's only me, but I can't get make.names() transform '_' in
the way it is expected when I add the "allow_" option. A simple example trying
to replicate the example provided in the help page gives:

-----8<---------------
> make.names(c("a and b", "a_and_b"), unique=TRUE, allow_=FALSE)
[1] "a and b." "a_and_b"
-----8<---------------



When the example says it should be:
-----8<---------------
make.names(c("a and b", "a_and_b"), unique=TRUE, allow_=FALSE)
# "a.and.b"  "a.and.b.1"
-----8<---------------


I'm using R-2.1.1 compiled by myself on a gentoo GNU/Linux laptop.

Anybody with the same problems? 

Thank you,


-- 

Xavier FernÃ¡ndez i MarÃ­n
xavier.fim at menta.net
^^^^^^^^^^^^^^^^^^^^^^^^




More information about the R-help mailing list