An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20100830/757f1fb8/attachment.pl>
take component names of a list
3 messages · Hyunchul Kim, Henrique Dallazuanna, Dimitris Rizopoulos
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20100829/ef7cd727/attachment.pl>
check at the online help file of function ?names(), and then try this: names(list.a) I hope it helps. Best, Dimitris
On 8/29/2010 5:51 PM, Hyunchul Kim wrote:
Hi, all
I want to take a vector of component names of a list.
list.a<- list('x'=1, 'y'=2)
how to get a c('x','y') from list.a?
Thanks in advance,
Hyunchul
[[alternative HTML version deleted]]
______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands Tel: +31/(0)10/7043478 Fax: +31/(0)10/7043014