Rev 7081 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{nlevels}\title{The Number of Levels of a Factor}\usage{nlevels(x)}\alias{nlevels}\description{Return the number of levels which its argument has.\details{If the argument is not a \code{\link{factor}}, \code{NA} is returned.The actual factor levels (if they exist) can be obtainedwith the \code{\link{levels}} function.}\examples{nlevels(gl(3,7)) # = 3}\keyword{category}