View source: R/data-preprocess.R
onehot | R Documentation |
column_list
, each list component contains classes of one non-numeric featureThis function is used to convert dataframe into onehot dataframe
It also returns column_list
, each list component contains classes of one non-numeric feature
onehot(data, autolabel = TRUE, binary = NULL, multiclass = NULL)
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 |
A vector contains names of binary features |
multiclass |
A vector contains names of multiclass features |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.