Function to quick mutate columns to factor.
to_factor(.data, ...)
.data | A data frame |
---|---|
... | The variable(s) to encode to a factor. |
An object of the same class of .data
with the variables in
...
encoded to a factor.
Tiago Olivoto tiagoolivoto@gmail.com