conv.factor: Convert variables to factors

View source: R/conv.factor.R

conv.factorR 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"))


RfEmpImp documentation built on Oct. 20, 2022, 9:06 a.m.