The R Project SVN R

Rev

Rev 286 | Rev 15518 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

\name{levels}
\title{Levels Attributes}
\usage{
levels(x)
levels(x) <- value
}
\alias{levels}
\alias{levels<-}
\description{
\code{levels} provides access to the levels attribute of a variable.
The first form returns the value of the levels of its argument
and the second sets the attribute.

The assignment for of \code{levels} is a generic function and new methods
can be written for it.  The most important method is that for factors.
}
\seealso{
\code{\link{levels<-.factor}}, \code{\link{nlevels}}.
}
\keyword{category}