Learn R Programming

chevron (version 0.2.7)

lvls: Obtain levels from vector

Description

Obtain levels from vector

Usage

lvls(x)

Value

character with unique values.

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.