Description Usage Arguments Details Value Examples
The factor and the order must be of the same length and each value of factor must correspond with one value of order.
1 |
factor |
A factor or character vector. |
order |
A numeric variable (or coercible to numeric). |
desc |
Set to TRUE to order descending. |
This is useful when you have unique values of factor and numeric, but can be useful in other circumstances when another variable corresponds to the ordering of the factor.
Ties are arbitrarily ordered for unique factors.
An ordered factor.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.