onehot: This function is used to convert dataframe into onehot...

View source: R/data-preprocess.R

onehotR Documentation

This function is used to convert dataframe into onehot dataframe It also returns column_list, each list component contains classes of one non-numeric feature

Description

This function is used to convert dataframe into onehot dataframe It also returns column_list, each list component contains classes of one non-numeric feature

Usage

onehot(data, autolabel = TRUE, binary = NULL, multiclass = NULL)

Arguments

data

a data frame

autolabel

logical; if TRUE the class of variables would be automatically found and users are not required to provide the names of binary and multiclass

binary

A vector contains names of binary features

multiclass

A vector contains names of multiclass features


agnesdeng/misle documentation built on Sept. 22, 2023, 8:48 p.m.