[R] get names of list elements

2009-10-31 Thread Chirok Han
Hi Consider > a <- 1:5; b <- 6:10 > x <- list(a=a,b=b) > y <- list(a,b) I can get c("a","b") from x using names(x). Is it also possible to get "a" and "b" from y? (The command "names(y)" gives NULL.) Thanks in advance. Chirok __ R-help@r-project.org

[R] Source of chickwts data

2010-06-07 Thread Chirok Han
I'm not sure if this is the right mailing list. My apologies if I'm sending the question to the wrong mailing list. (The r-packages list moderator suggested using the R-help list.) My question is about the "chickwts" data in the datasets package. According to help(chickwts), the source of the data

Re: [R] Source of chickwts data

2010-06-07 Thread Chirok Han
Many thanks. That's the right one. It would be better corrected in the next version of R. Thanks again. Chirok On Tue, Jun 8, 2010 at 6:01 AM, William Dunlap wrote: >> -Original Message- >> From: r-help-boun...@r-project.org >> [mailto:r-help-boun...@r-project.o