Xavier Fernández i Marín
2005-Jul-27 12:17 UTC
[R] make.names() does not return what is expected
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 ^^^^^^^^^^^^^^^^^^^^^^^^
It's a bug, soon to be fixed in R-patched. On Wed, 27 Jul 2005, Xavier [utf-8] Fern?ndez i Mar?n wrote:> Hello, > I don't know if it's only me, but I can't get make.names() transform '_' inthe way it is expected when I add the "allow_" option. A simple example tryingto 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,-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595