inverse-Permutation-method: Function to invert a permutation

Description Usage Arguments Value Examples

Description

This returns the inverse of a permutation

Usage

1
2
## S4 method for signature 'Permutation'
inverse(x)

Arguments

permutation

Object of class Permutation to be inverted

Value

A new object of class Permutation equal to the inverse of permutation

Examples

1
2
3
permu <- permutation(order(runif(10)))
permu
inverse(permu)

anderct105/Dataset_R documentation built on Dec. 24, 2021, 12:16 a.m.