Description Usage Arguments Value Examples
Onehot encode a data.frame
1 |
data |
data.frame to convert factors into onehot encoded columns |
stringsAsFactors |
if TRUE, converts character vectors to factors |
addNA |
if TRUE, adds NA to factors as a level |
max_levels |
maximum number of levels to onehot encode per factor variable. Factors with levels exceeding this number will be skipped. |
a onehot
object descrbing how to transform the data
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.