factorToInteger: factorToInteger()

Description Usage Arguments Examples

Description

Turns factors into numerics.

Usage

1
factorToInteger(factors = NULL, intCheck = TRUE)

Arguments

factors

a vector of factors

intCheck

samples elements from factors to determine whether or not they are whole numbers. If they are not whole numbers, factorToNumeric is used instead and a warning shows up. Default is TRUE, set this argument to FALSE to disable this behavior.

Examples

1
2
factors <- factor(c(1,2,3,4,5))
factors <- factorToInteger(factors)

jakesherman/jakemisc documentation built on May 18, 2019, 9:08 a.m.