perm: Generate permutations

Description Usage Arguments Value Examples

Description

Generate all posible permutations of the elements of a vector v. Each row in the output matrix contains a different permutation.

Usage

1
perm(v)

Arguments

v

a vector.

Value

a matrix containing all permutations of the elements of vector v.

Examples

1
2
perm(v = c(2,2,2))
perm(v = 3:1)

macartan/biqq documentation built on May 6, 2019, 6:03 p.m.