conv.factor: Convert variables to factors

Description Usage Arguments Value Examples

View source: R/conv.factor.R

Description

Convert variables to factors

Usage

1
conv.factor(data, convNames = NULL, exceptNames = NULL, uniqueNum = 5)

Arguments

data

Input data frame.

convNames

Names of variable to convert, the default is convNames = NULL.

exceptNames

Names of variables to be excluded from conversion, the default is convNames = NULL.

uniqueNum

Variables of less than or equal to a specific number of unique values in the to be converted to factors, the default is uniqueNum = 5.

Value

A data frame of converted variables.

Examples

1
nhanes.fix <- conv.factor(data = nhanes, convNames = c("age", "hyp"))

RfEmpImp documentation built on July 2, 2020, 2:13 a.m.