order: Order a lvec

View source: R/order.R

orderR Documentation

Order a lvec

Description

Order a lvec

Usage

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

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


djvanderlaan/lvec documentation built on Oct. 26, 2022, 11:43 a.m.