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

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed Jul 27 14:33:33 CEST 2005


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


More information about the R-help mailing list