[R] store levels in a string

Daniele Medri dmedri at gmail.com
Tue Apr 18 17:52:51 CEST 2006


Dear R-users,

i need to store in a variable a string made from levels of a factor

e.g.

a<-("a","a","b","b")
af<-factor(a)

mylevels<- ...a string with all the levels(af)

Thanks
--
DM




More information about the R-help mailing list