[R] find the permutation function of a sorting

John mi@ojpm @ending from gm@il@com
Wed May 23 04:06:06 CEST 2018


Hi,

   Is there any way to find the permutation function of the sorting and to
apply the function (or its inverse) elsewhere?

   For example, the following permutation function from the sorting in the
matrix form is
c(1,2,3), c(2,1,3)

> sort(c("bc","ac","dd"))
[1] "ac" "bc" "dd"

   I try to find it in the permutations/permute package, but I can't find it

John

	[[alternative HTML version deleted]]



More information about the R-help mailing list