varClassifier: Classify variables to categorical or numerical variables

Description Usage Arguments Value Examples

View source: R/basetable.R

Description

This function classifies variables to three differente types including categorical, non-normal numerical or normal numerical variables.

Usage

1
varClassifier(dt, myVars, len.max = 5, print.result = T, p_norm = 0.05)

Arguments

dt

Dataframe to be used

myVars

Variables to be categorized

len.max

Maximum number of elements to convert to factor

print.result

Print the analyzed result

p_norm

Cut-off p-value classifying normal and non-normal

Value

lists of three different types

Examples

1
varClassifier(dt=mtcars, myVars=c("am", "cyl", "mpg"))

nephroj/medicj documentation built on Dec. 22, 2021, 12:10 a.m.