label.factor: Transform a variable into factor

Description Usage Arguments Functions

Description

These functions turn a variable into a factor, with NA as an independent level called 'Missing'.

Usage

1
2
3
label.factor(x, levels = NULL)

label.numeric(x, cuts, single.values = NULL, na.level = NULL)

Arguments

x

a numeric or a vector which can be coerced to be a factor

levels

designated levels in the result factor

cuts

cut points to segment a numeric, using a right-close interval

single.values

For numeric vectors, some of the values should be as separate levels.

na.level

should NA be an independent level? NULL for default behavior which inducts

Functions


siyuany/autobin documentation built on May 29, 2019, 11 p.m.