one_hot_encoding: Encode categorical values in data.table.

Description Usage Arguments Value

Description

Expand each categorical value into a full set of dummies.

Usage

1
one_hot_encoding(dt, var_list, drop = FALSE, keep = FALSE)

Arguments

dt

data.table containining the data [data.table].

var_list

Names of variables which are to be encoded [character].

drop

Whether to omit one category per variable (to avoid multicolinearity) [logical].

Value

Modified data.table.


ClaraMarquardt/huhn documentation built on May 10, 2019, 12:53 p.m.