powered by
Change factor levels
change_fac_lev(x, levels = NULL, last = FALSE)
factor
vector
custom levels
put the custom levels to the last
change_fac_lev(letters[1:5], levels = c("c", "a"))
Run the code above in your browser using DataLab