[Rd] undocumented name mangling during unlist?

From: Seth Falcon <sfalcon_at_fhcrc.org>
Date: Mon 08 Jan 2007 - 18:04:27 GMT

The documentation for unlist says:

     By default, 'unlist' tries to retain the naming information
     present in 'x'.  If 'use.names = FALSE' all naming information is

Hence, I find it odd that I see the following:

> b <- list("highway1"=1:5)
> unlist(b)

    highway11 highway12 highway13 highway14 highway15

            1 2 3 4 5

I suspect this is essential behavior for something or other, but it seems that this approach is inefficient for large lists and in many contexts does not preserve names, but invents new ones.

/me ducks

+ seth

R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Tue Jan 09 14:18:39 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 09 Jan 2007 - 17:31:12 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.