The R Project SVN R

Rev

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

Rev 61168 Rev 61433
Line 11... Line 11...
11
\alias{nlevels}
11
\alias{nlevels}
12
\description{
12
\description{
13
  Return the number of levels which its argument has.
13
  Return the number of levels which its argument has.
14
}
14
}
15
\arguments{
15
\arguments{
16
  \item{x}{an object, usually a factor.} 
16
  \item{x}{an object, usually a factor.}
17
}
17
}
18
\details{
18
\details{
19
  This is usually applied to a factor, but other objects can have levels.
19
  This is usually applied to a factor, but other objects can have levels.
20
  
20
 
21
  The actual factor levels (if they exist) can be obtained
21
  The actual factor levels (if they exist) can be obtained
22
  with the \code{\link{levels}} function.
22
  with the \code{\link{levels}} function.
23
}
23
}
24
\value{
24
\value{
25
  The length of \code{\link{levels}(x)}, which is zero if
25
  The length of \code{\link{levels}(x)}, which is zero if