Learn R Programming

ivmte (version 1.0.1)

permuteN: Auxiliary function: generate all permutation orderings

Description

This function generates every permutation of the first n natural numbers.

Usage

permuteN(n)

Arguments

n

integer, the first n natural numbers one wishes to permute.

Value

a list of all the permutations of the first n natural numbers.