Skip to content
Prev 374748 / 398513 Next

find the permutation function of a sorting

$x
[1] "ac" "bc" "dd"

$ix
[1] 2 1 3


We have the permutation, namely 1-->2, 2-->1, 3-->3.
How can I apply the permutation function to a new set
c("D","E", "F")?
so that the result is
c("E","D", "F").




2018-05-23 11:06 GMT+08:00 David Winsemius <dwinsemius at comcast.net>: