Skip to contents

Obtain levels from vector

Usage

lvls(x)

Arguments

x

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

Value

character with unique values.

Details

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