to.factor-set: Set Factor Class

Description Usage Arguments Value Examples

Description

Set Factor Class

Usage

1
to.factor(x) <- value

Arguments

x

the data that you want to set

value

levels, the first value is the reference. If the length of value is 1, no levels will be given to x

Value

factor x

Examples

1
to.factor(mtcars$gear) <- c(4,3,5)

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