factorize | R Documentation |
Changes character vectors of a data set to factor vectors.
factorize(data, binary = FALSE)
data |
data frame or tibble data set. |
binary |
logical indicating if binary numeric data should be considered
as factor.
Default is |
When binary = TRUE
, variables stored as numeric and which have
exactly two levels are changed to factor.
Data frame with all character vectors changed to factor vectors.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.