to.labels-set: Give Labels to Factor

Description Usage Arguments Value Examples

Description

Give Labels to Factor

Usage

1
to.labels(x) <- value

Arguments

x

factor or numeric variable

value

labels separated by colon

Value

factor variable with lables, the first lable will be treated as reference.

Examples

1
to.labels(x=mtcars$am) <- c('0:Female','1:Man')

fastStat documentation built on Jan. 13, 2021, 7:32 a.m.