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')

yikeshu0611/fastStat documentation built on Nov. 18, 2019, 11:23 a.m.