order | R Documentation |
Order a lvec
order(x, ...) ## Default S3 method: order(x, ...) ## S3 method for class 'lvec' order(x, ...)
x |
lvec to sort |
... |
unused. |
Returns the order of x
. Unlike the default order
function in R, the sort used is not stable (e.g. in case there are multiple
records with the same value in x
, there relative order after sorting
is not defined).
x <- as_lvec(rnorm(10)) order(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.