Description Usage Arguments Value Examples
The method below returns a sorted version of the data frame given as first argument.
1 2 |
x |
a data frame. |
decreasing |
a logical value, should sorting be in increasing or decreasing order? |
by |
a character name of variable names, by which to sort; a formula giving the variables, by which to sort; NULL, in which case, the data frame / data set is sorted by all of its variables. |
na.last |
for controlling the treatment of 'NA's. If 'TRUE', missing values in the data are put last; if 'FALSE', they are put first; if 'NA', they are removed |
... |
other arguments, currently ignored. |
A sorted copy of x
.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.