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

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

Related to to.labels in fastStat...