[R] recovering names of factor levels ??

Peter Langfelder peter.langfelder at gmail.com
Thu Dec 23 01:00:22 CET 2010


see function levels()

?levels

Peter

On Wed, Dec 22, 2010 at 3:00 PM, maddox <matthewgdodds at hotmail.com> wrote:
>
> Hi,
>
> I have a factor with 3 levels. I'd like to recover the names of each level
> so I can use them to search through another data structure. Is this
> possible?
>
> Thanks
>



More information about the R-help mailing list