Description Usage Arguments Value Examples
One-hot encodes a dataframe whose features are all categorical
1 | onehot(encodable_df)
|
encodable_df |
data.frame A dataframe of categorical features. |
data.frame Returns the same dataframe with useful column names and one-hot encoded features
1 2 | my_data <- data.frame(animals = c('monkey', 'dog', 'cat'))
onehot(my_data)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.