classify.columns: Get variables class information

Description Usage Arguments Value Examples

View source: R/functions.R

Description

Creates data frame with info about dataset columns including proposed conversions and optionally convert

Usage

1
classify.columns(data, y.name = "target", max.cardinality = 6)

Arguments

data

data frame with variables of interest

y.name

target variable

max.cardinality

maximum levels of numeric variable to be marked for conversion to factor

convert

if not set - return information about variables; if set - return converted data frame and print information

Value

data frame with column types and statistics

Examples

1
df.cols <- classify.columns(df)

konstantin-kotochigov/R_ml_utils documentation built on May 3, 2019, 4:07 p.m.