factorLevels: Retrieve the levels within a factor object

Description Usage Arguments Value

Description

This function is essentially the same as the levels command in base, but it will type-cast the return to numeric when that is valid.

Usage

1

Arguments

x

the factor from which to extract the levels

Value

the levels; this will be numeric if possible, character otherwise


henkelstone/NPEL.Classification documentation built on May 17, 2019, 3:42 p.m.