autoVarClass: autoVarClass

View source: R/autoVarClass.R

autoVarClassR Documentation

autoVarClass

Description

automatically chage variable mode in a data.frame.

Usage

autoVarClass(data, lenTab = 10, thresh = 0.8)

Arguments

data

a data.frame object.

lenTab

length of a single variable elements.

thresh

thershold value when transform a variable into numeric.

Details

some discrete variables maybe coded into integer, eg. sex (male=1,female=2),and should be treated as character or factor when analyzing. autoVarClass can be used to automatically detect variable mode in a data.frame.

Examples

autoVarClass(data=mtcars,lenTab=10,thresh=0.75)



sontron/KDAT1 documentation built on July 8, 2022, 7:06 a.m.