Description Usage Arguments Details Value Examples
The factor and the order must be of the same length. The order is summarised by the levels of factor, using the summary function. The outcome of summarising is used to order the factor variable.
1 |
factor |
A factor or character vector. |
order |
A numeric. |
summary |
A function to apply to each subset of order which will return a single number |
desc |
Set to TRUE to order descending. |
... |
Further arguments to summary |
Ties are arbitrarily ordered.
An ordered factor
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.