Learn R Programming

lares (version 4.1)

auto_preprocess: Auto-Preprocessing data for a Machine Learning Model

Description

This function helps us preprocess data automatically.

Usage

auto_preprocess(df, num2fac = 7, impute = FALSE, ohe = FALSE,
  scale = FALSE, logs = FALSE, print = FALSE)

Arguments

df

Dataframe. Dataframe to format, transform and input

num2fac

Integer. Threshold for unique values on a numerical variable to transform into factor

ohe

Boolean. One hot encoding on variables with 3 or more cateogries?

scale

Boolean. Scale the data (normalized)

logs

Boolean. Automatically calculate log(values) for numerical variables (not binaries)

print

Boolean. Print results summary