nlevels | R Documentation |
Return the number of levels which its argument has.
## S4 method for signature 'fmVFactor' nlevels(x)
x |
a FlashR factor |
This is applied to a FlashR factor.
The length of levels(x)
, which is zero if x
has no levels.
vec <- fm.as.factor(as.integer(fm.runif(100, min=0, max=100))) nlevels(vec)