Skip to contents

Creates all possible permutations

Usage

permute(n)

Arguments

n

Integer: Length of elements to permute

Value

Matrix where each row is a different permutation

Details

n higher than 10 will take a while, or may run out of memory in systems with limited RAM