Skip to contents

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.