[R] store levels in a string

Daniele Medri dmedri at gmail.com
Tue Apr 18 20:53:26 CEST 2006


Il giorno mar, 18/04/2006 alle 11.29 -0500, Marc Schwartz (via MN):
> > paste(levels(af), collapse = "")
> [1] "ab"
> 
> See ?paste.

:) more simple: toString(levels(x))

Thanks,

Cheers
--
DM




More information about the R-help mailing list