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

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Wed 27 Jul 2005 - 22:33:33 EST

It's a bug, soon to be fixed in R-patched.

On Wed, 27 Jul 2005, Xavier [utf-8] Fernndez i Marn 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@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

______________________________________________ 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:37:50 2005

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