Factors are categorical variables. These functions allow for defining a layer as a categorical variable.
This feature is under development, and whether a layer is defined as a factor or not is currently ignored by all other functions.
Usage
is.factor(x)
asFactor(x, ...)
labels(object, ...)
labels(object) <- value