View source: R/convert_all_char_to_fctr.R
convert_all_char_to_fctr | R Documentation |
This function takes a tbl_df and returns same with any character column converted to a factor.
convert_all_char_to_fctr(data)
data |
Tibble or data frame |
A tibble
library(dplyr)
dplyr::glimpse(starwars)
convert_all_char_to_fctr(data = starwars)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.