turn character into factor, sort factor levels and replace NA level
Source:R/prepare_functions.R
tidy_factor.Rd
turn character into factor, sort factor levels and replace NA level
Usage
tidy_factor(x, level_sorting = c("frequency", "alphabet")[1])