| sparse_encode | R Documentation |
Sparse encoding
sparse_encode(x)
x |
A vector with values (levels) of a categorical variable. |
An array with numeric encoded levels of x.
one_hot_encode.
Other Dummifying:
append_rows(),
dummify(),
dummify_multilabel(),
effectcoding(),
one_hot_decode(),
one_hot_encode(),
remove_columns(),
resample_imbalanced()
x <- factor(sample(lvls <- c("dog", "cat", "mouse"), 10, TRUE), levels = lvls)
sparse_encode(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.