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