One-hot encodes a dataframe whose features are all categorical
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
#> cat dog monkey #> 1 0 0 1 #> 2 0 1 0 #> 3 1 0 0