Description Usage Arguments Value
Transforms categorical data (factor or character ot integer) to a format that works better with classification and regression algorithms.
1 | encode_onehot(.data, ..., drop_first = TRUE, sep = "_")
|
.data |
A tbl. |
... |
One or more unquoted expressions separated by commas. You can treat variable names like they are positions. It supports [dplyr::select] comparable. |
drop_first |
bool, default TRUE Whether to get k-1 dummies out of k categorical levels (factor) by removing the first level. |
sep |
Separator between columns. |
An object of the same class as .data with "preprocessing-chain" attribution.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.