R/fastorder.R
fastorder.Rd
Order a numeric vector in ascending order. Identical values are ordered in descending order of occurrence.
fastorder(x)
numeric vector.
fastorder returns a list with two elements:
fastorder
x: numeric vector. The ordered version of the vector.
x
ix: numeric vector. The corresponding indices.
ix
out <- fastorder(mtcars$cyl)