inversePermutation: Calculate the inverse of a permutation

Description Usage Arguments Value See Also

View source: R/list_utils.r

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

1

Arguments

x

The permutation to return the inverse for.

Value

The inverse of the permutation x.

See Also

rank, order


rgp documentation built on May 30, 2017, 12:45 a.m.