factor_all | R Documentation |
Mutate all character variables to factor with as_factor().
factor_all(.data)
.data |
df <- data.frame(a = c("a", "b"), b = c(1,2))
df <- factor_all(df)
str(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.