View source: R/prepare_functions.R
tidy_factor | R Documentation |
turn character into factor, sort factor levels and replace NA level
tidy_factor(x, level_sorting = c("frequency", "alphabet")[1])
x |
character vector to be turned to factor |
level_sorting |
sorting of factor levels; two options: "frequency" (default) and "alphabet"; level "Unbekannt" is always always at the end |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.