[R] converting a list with named member to a vector maintaining original names
baccts at hotmail.com
Tue Jun 24 18:56:34 CEST 2014
Dear R users,
I have a list that I'd like to convert to a vector while preserving the original names.
test <- list(ABCC2=37280,ABCC5=c(12268,13308));
If I do unlist, it automatically renamed the ABCC5 to ABCC51 and ABCC52
ABCC2 ABCC51 ABCC52
37280 12268 13308
How do I retained the original names so I'll get:
Thank you in advance for your help.
More information about the R-help