Reverses the order of the levels of a factor.
Details
Replacement for forcats::fct_rev(), in order to reduce the number of dependencies to datscience package
Examples
if (FALSE) {
if (interactive()) {
f <- factor(letters[c(1:5)])
(reversed_factor <- util_rev_fac(f))
}
}