inv: Inverse Permutation

Description Usage Arguments Value Author(s) Examples

Description

Computes the inverse of a permutation.

Usage

1
inv(x)

Arguments

x

an integer vector

Value

Returns the inverse permutation of a vector.

Author(s)

Lucy Small, lucy.small@ucdconnect.ie

Examples

1
2
a = c(3,1,2,5,4)
inv(a)

lucyov26/RankMetric documentation built on May 6, 2019, 9:09 a.m.