Learn R Programming

PerMallows (version 1.13)

compose: Compose permutations

Description

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

Usage

compose(perm1, perm2)

Arguments

perm1
a permtuation or a collection of permutations
perm2
a permtuation or a collection of permutations

Value

The composition of the permutations

Examples

Run this code
compose(c(3,1,2,4), c(4,1,3,2))

Run the code above in your browser using DataLab