Description Usage Arguments Value
Expand each categorical value into a full set of dummies.
1 | one_hot_encoding(dt, var_list, drop = FALSE, keep = FALSE)
|
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]. |
Modified data.table.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.