create.perms: Permutation Creation

Description Usage Arguments Value Examples

View source: R/misc.functions.R

Description

Creates all permutations of length p using the n-length vector of numbers given by source.vector.

Usage

1
create.perms(n = 20, p = 3, source.vector = 1:n)

Arguments

n

The size of the source vector used to generate the permutations.

p

The length of the permutations to be produced.

source.vector

The vectors of numbers used to generate the permutations.

Value

perms A matrix containing all of the permutations generated.

Examples

1
create.perms(n=20, p=3) # produces a 20^3 matrix of permutations.

benpickering/smop documentation built on Sept. 4, 2020, 1:45 a.m.