Description Usage Arguments Value Examples
View source: R/one_hot_encoder.R
One-hot Encoder
1 | one_hot_encoder(data, feature, as_integer = FALSE)
|
data |
Input data frame |
feature |
Unquoted form of the feature/column to encode |
as_integer |
Whether the boolean should be converted to integer or not |
Data frame with encodeded feature column
1 2 | set.seed(11)
one_hot_encoder(iris[sample(1:150, 10),], Species)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.