Description Usage Arguments Value Examples
This function allows you to reorder the levels of a factor in decreasing order. R defines decreasing order as decreasing alphabetical order when the levels of factors are strings.
1 | reorder_desc(x)
|
x |
factor |
factor; gives reordered levels in decending alphabetical order
1 2 3 | x <- factor(c("a", "b", "c", "d"))
levels(x)
levels(reorder_desc(x))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.