perm: Create permutations.

Description Usage Arguments Value Author(s) Examples

View source: R/perm.R

Description

Create the ith permutation in a series from 1 to factorial(n).

Usage

1
perm(moves,n)

Arguments

moves

the number of moves, a number between 1 and factorial(n), but in principle higher numbers can be used too.

n

the number of elements in the permutations

Value

A numerical vector consisting of n elements.

Author(s)

Joost van de Weijer

Examples

1
perm(345453,17) # Create the 345453th permutation of the numbers 1 to 17.

vdweijer/supply documentation built on June 28, 2021, 7:45 a.m.