Rdocumentation
powered by
Learn R Programming
rgp (version 0.4-1)
inversePermutation: Calculate the inverse of a permutation
Description
Returns the inverse of a permutation
x
given as an integer vector. This function is useful to turn a ranking into an ordering and back, for example.
Usage
inversePermutation(x)
Arguments
x
The permutation to return the inverse for.
Value
The inverse of the permutation
x
.
See Also
rank
,
order