levels | R Documentation |
levels
returns the levels attribute of a variable.
## S4 method for signature 'fmVFactor' levels(x)
x |
a FlashR factor. |
Currently, levels of a factor vector is a sequence number from 1 to the number of levels. FlashR doesn't support other factor values.
a FlashR vector that contains the value of the levels.
vec <- fm.as.factor(as.integer(fm.runif(100, min=0, max=100))) levels(vec)