inverse.perm | R Documentation |
This function generates the inverse of a given permutation. If the input is a matrix of permutations, invert all the permutations in the input.
inverse.perm(perm)
perm |
a permutation or matrix of permutations |
The inverse permutation. If the input is a matrix,the matrix with the inverses
inverse.perm(c(1,2,3,4))
inverse.perm(c(2,3,4,1))
data <- matrix(c(1,2,3, 4,1,4,3,2,1,2,4,3), nrow = 3, ncol = 4, byrow = TRUE)
inverse.perm(data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.