Description Usage Arguments Value Examples
View source: R/misc.functions.R
Creates all permutations of length p
using the n
-length vector of numbers given by source.vector
.
1 | create.perms(n = 20, p = 3, source.vector = 1:n)
|
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. |
perms A matrix containing all of the permutations generated.
1 | create.perms(n=20, p=3) # produces a 20^3 matrix of permutations.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.