Learn R Programming

PerMallows (version 1.14)

cycle2str: Friendly display the cycles

Description

Given a list with the cycles of a permutation, displays them in the standard cycle notation

Usage

cycle2str(cy)

Arguments

cy

a list with the set of cycles

Examples

Run this code
cycle2str(perm2cycles(c(1,5,2,3,4)))

Run the code above in your browser using DataLab