fct_rev

0th

Percentile

Reverse order of factor levels

This is sometimes useful when plotting a factor.

Usage
fct_rev(f)
Arguments
f

A factor (or character vector).

Aliases
  • fct_rev
Examples
# NOT RUN {
f <- factor(c("a", "b", "c"))
fct_rev(f)
# }
Documentation reproduced from package forcats, version 0.3.0, License: GPL-3

Community examples

Looks like there are no examples yet.