Skip to content
Prev 374744 / 398513 Next

find the permutation function of a sorting

Thanks, David.
I got the answer from the web.
Is there any easy way to permute a set (e.g., a set of characters) by the
permutation it returns? Thanks,
$x
[1]  2  3  4  7  8 10

$ix
[1] 6 4 3 2 5 1

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