R/utils.R
lvls.Rd
Obtain levels from vector
lvls(x)
(character) or (factor) object to obtain levels.
character
factor
character with unique values.
For factors, the levels will be returned. For characters, the sorted unique values will be returned.