R/l_tools.R
change_fac_lev.Rd
Change factor levels
change_fac_lev(x, levels = NULL, last = FALSE)
vector
custom levels
put the custom levels to the last
factor
change_fac_lev(letters[1:5], levels = c("c", "a")) #> [1] a b c d e #> Levels: c a b d e