compose: Compose permutations

Description Usage Arguments Value Examples

View source: R/PerMallows.R

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

1
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

1
compose(c(3,1,2,4), c(4,1,3,2))

Example output

Loading required package: Rcpp
[1] 4 3 2 1

PerMallows documentation built on May 2, 2019, 6:14 a.m.