to.labels: Give Labels to Factor

Description Usage Arguments Value Examples

View source: R/to.labels.R

Description

Give Labels to Factor

Usage

1

Arguments

x

factor or numeric variable

labels

labels separated by colon

Value

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

Examples

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

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