Description Usage Arguments Value
to_dummies
converts a column into multiple columns of dummy variables.
to_dummies_
is the standard evaluation version of this function.
1 2 3 | to_dummies(.data, col, sep = "_", exclude = NULL)
to_dummies_(.data, col, sep = "_", exclude = NULL)
|
.data |
A |
col |
In |
sep |
The new variable names are constructed from |
exclude |
Ignore these levels of |
A tbl
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.