Description Usage Arguments Value Examples
View source: R/integer_encoder.R
Integer Encoder
1 | integer_encoder(data, feature, as_factor = TRUE)
|
data |
Input data frame |
feature |
Unquoted form of the feature/column to encode |
as_factor |
Whether the feature data type should be kept as factor or pure integer |
Data frame with encoded feature column
1 2 | set.seed(11)
integer_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.