compose {PerMallows} | R Documentation |
This function composes two given permtuations. One of the arguments can be a collection of permutations, but not both at the same time. In this case, every permutation in the collection is composed with the other argument
compose(perm1, perm2)
perm1 |
a permtuation or a collection of permutations |
perm2 |
a permtuation or a collection of permutations |
The composition of the permutations
compose(c(3,1,2,4), c(4,1,3,2))