Description Usage Arguments Details Value See Also Examples
Reorder the rows in a dataset.
1 2 |
x |
a dataset object. |
... |
a sequence of expressions that evaluate to vector-like
or matrix-like values with the same number of rows as |
reorder
reorders the rows of x
according to the specified
expressions. These expressions get evaluated via the scope
function
in a context that looks for symbols in x
before the calling
environment. After the arguments get evaluated the arguments
get converted to numeric via xtfrm.dataset
, and then
the rows of x
get sorted using these values.
By default, we sort in ascending order according to the arguments, in order.
To use descending order for one or more of the arguments use desc =
before the argument; see the examples below. You can also specify
asc =
, but this has no effect as ascending order is the default.
A dataset
with the rows of x
put in the specified order.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.