to.factor: Set Factor Class

Description Usage Arguments Value Examples

View source: R/to.factor.R

Description

Set Factor Class

Usage

1

Arguments

x

the data that you want to set

levels

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

Value

factor x

Examples

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

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

Related to to.factor in fastStat...