Learn R Programming

ldat (version 0.3.3)

order.ldat: Order an ldat

Description

Order an ldat

Usage

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

Arguments

x

ldat 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

Run this code
# NOT RUN {
x <- as_ldat(iris)
o <- order(x[c("Sepal.Width", "Sepal.Length")])

# }

Run the code above in your browser using DataLab