Examples for 'forcats::fct_rev'


Reverse order of factor levels

Aliases: fct_rev

Keywords:

### ** Examples

f <- factor(c("a", "b", "c"))
fct_rev(f)
[1] a b c
Levels: c b a

[Package forcats version 0.5.1 Index]