Description Usage Arguments Value Examples
The one hot representation is analogous to factors in the sense that each value of the catagorical variable have its own logical vector that is 1 when present and 0 when it isn't.
1 |
data |
a data.frame or tibble. |
var |
name of catagorical variable. |
A data.frame or tibble with the catagorical variable replaced with an one hot representation.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.