onehot_vec | R Documentation |
Uses one-hot encoding to convert nominal vectors to a tibble containing variables for each of the unique values in input vector.
onehot_vec(x, prefix)
x |
non-numeric vector |
prefix |
prefix to append to output variable names |
tibble
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.