[R] Levels number of a factor object

Laurent Houdusse l.houdusse at cerep.fr
Fri Jan 23 15:24:21 CET 2004

Hi all!

    How to retrieve the levels number of a factor object?
    See this code:
    I want to retrieve the number of levels (4) of my object "groups"
    I tried groups.levels but this don't work


Laurent Houdusse 
Analyste Programmeur

More information about the R-help mailing list