powered by
Formal description of an ordered categorical variable
ordered_var(name, desc = NULL, levels, sparse = FALSE, ...)
character, the name of the variable
character, a description of what is measured
character, the ordered levels of the factor
logical, set-up a sparse model matrix
ignored
An object of class ordered\_var inheriting from var with corresponding methods.
ordered\_var
var
A conceptual description of a (yet) unobserved ordered categorical variable.
# NOT RUN { ordered_var("temp", "temperature", c("cold", "lukewarm", "warm", "hot")) # }
Run the code above in your browser using DataLab