order: Order a lvec

Description Usage Arguments Value Examples

View source: R/order.R

Description

Order a lvec

Usage

1
2
3
4
5
6
7
order(x, ...)

## Default S3 method:
order(x, ...)

## S3 method for class 'lvec'
order(x, ...)

Arguments

x

lvec to sort

...

unused.

Value

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).

Examples

1
2
x <- as_lvec(rnorm(10))
order(x)

djvanderlaan/lvec documentation built on Oct. 31, 2017, 8:39 a.m.