order_cpp {twosamples}R Documentation

Order in C++

Description

Simply finds the order of a vector in c++. Mostly for internals.

Usage

order_cpp(x)

Arguments

x

numeric vector

Value

same length vector of integers representing order of input vector

Examples

vec = c(1,4,3,2)
order_cpp(vec)

[Package twosamples version 1.0.0 Index]