Learn R Programming

lvec (version 0.2.5)

order: Order a lvec

Description

Order a lvec

Usage

order(x, ...)

# S3 method for default order(x, ...)

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

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

Arguments

x

lvec to sort

...

unused.

Examples

Run this code
x <- as_lvec(rnorm(10))
order(x)

Run the code above in your browser using DataLab