conv.factor {RfEmpImp}R Documentation

Convert variables to factors

Description

Convert variables to factors

Usage

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

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


[Package RfEmpImp version 2.1.8 Index]