refactor.Rd
Help to refactor the factor easier
refactor(x, new_position = c())
a character/factor vector
a integer vector specify what do you want the refactor order look like, e.g., from 1, 2, 3 to 3, 1, 2
x <- LETTERS[1:5]
refactor(x, c(5, 1:4))
#> [1] "E" "A" "B" "C" "D"