convertFactor: Factor converter

Description Usage Arguments Value

Description

convertFactor converts factored/character vectors into a data frame of indicators, with the reference group being the largest.

Usage

1
convertFactor(x, name, ref = NULL)

Arguments

x

Vector of string or factors

name

Name of vector supplied

ref

Group to be considered reference. If NULL, then the largest group will be set as the reference.

Value

convertFactor returns a data frame with indicators for each of the factored groups.


tranlm/lrecCompare documentation built on May 31, 2019, 7:44 p.m.