gsi2.invperm | R Documentation |
Finds the inverse of a permutation given as a vector of indices.
gsi2.invperm( i,n )
i |
a sequence of different integers in |
n |
the number of elements to be permuted |
The inverse permutation is defined by p[v]==1:n
and
v[p]==1:n
.
an integer vector v describing the inverse permutation of p.
Do not use gsi.* functions directly since they are internal functions of the package
K.Gerald v.d. Boogaart http://www.stat.boogaart.de
gsi
#gsi2.invperm(c(2,3),10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.