Learn R Programming

PerMallows (version 1.13)

permutations.of: Generate every permutation of perm.length item

Description

This functions returns a matrix in thich each of rows is a different permutation of the specified number of items

Usage

permutations.of(perm.length, alert = TRUE)

Arguments

perm.length
number of items in the permutation
alert
optional ask for confirmation when the number of permtuations to show is very large

Value

A collection of every permutation of the specified number of items

Examples

Run this code
permutations.of(3)
permutations.of(10)

Run the code above in your browser using DataLab