The R Project SVN R

Rev

Rev 10443 | Rev 42333 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 10443 Rev 15518
Line 5... Line 5...
5
}
5
}
6
\alias{nlevels}
6
\alias{nlevels}
7
\description{
7
\description{
8
  Return the number of levels which its argument has.
8
  Return the number of levels which its argument has.
9
}
9
}
-
 
10
\arguments{
-
 
11
  \item{x}{an object, usually a factor.} 
-
 
12
}
10
\details{
13
\details{
11
  If the argument is not a \code{\link{factor}}, \code{NA} is returned.
14
  If the argument is not a \code{\link{factor}}, \code{NA} is returned.
12
 
15
 
13
  The actual factor levels (if they exist) can be obtained
16
  The actual factor levels (if they exist) can be obtained
14
  with the \code{\link{levels}} function.
17
  with the \code{\link{levels}} function.