Skip to contents

to convert categorical variables in a data set into multiple binary variables with 1 and 0.

Usage

mixed_data_processing(X, cat_columns = NULL, Xtest = NULL)

Arguments

X

data set or matrix

cat_columns

a numerical or character vector that indicates categorical variables

Xtest

(optional) if there is testing data set separate from the training data, include the testing data

Value

data frame containing expanded form of categorical variables