InvertPermutation {GraphAlignment} | R Documentation |
Invert the permutation defined by the specified vector.
InvertPermutation(p)
p |
permutation vector |
The return value is a permutation vector equal to the inverse of the input permutation.
p <- rank(rnorm(10)) pInv <- InvertPermutation(p)