Learn R Programming

PerMallows (version 1.14)

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)

Value

A collection of every permutation of the specified number of items

Arguments

perm.length

number of items in the permutation

alert

optional ask for confirmation when the number of permutations to show is very large

Examples

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

Run the code above in your browser using DataLab