Skip to content
Back to formatted view

Raw Message

Message-ID: <BA420EFAAC96D311A7A0006097D37BDB045159FA@EOLE>
Date: 2004-01-23T14:24:21Z
From: Laurent Houdusse
Subject: Levels number of a factor object

Hi all!

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

    Thanks


Laurent Houdusse 
Analyste Programmeur