lvls {chevron}R Documentation

Obtain levels from vector

Description

Obtain levels from vector

Usage

lvls(x)

Arguments

x

(character) or (factor) object to obtain levels.

Details

For factors, the levels will be returned. For characters, the sorted unique values will be returned.

Value

character with unique values.


[Package chevron version 0.2.6 Index]