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

From: Xavier Fernández i Marín <xavier.fim_at_menta.net>
Date: Wed 27 Jul 2005 - 22:17:19 EST


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@menta.net
^^^^^^^^^^^^^^^^^^^^^^^^

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Jul 27 22:16:16 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:34:03 EST