[R] Level name as object name
jamesdare26 at gmail.com
Fri Oct 2 01:26:11 CEST 2009
If I have a dataset called "data" with a factor called "Species" that has
three levels "Sp1", "Sp2", and "Sp3". Is there a way to name an object
after a specific level? I have tried the code below and get the error
"error in paste(levels(data$Species)) <- 1:10 could not find function
Thanks for your help.
View this message in context: http://www.nabble.com/Level-name-as-object-name-tp25708252p25708252.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help