Description Usage Arguments Value Examples
Returns permutations of a given NumericVector as columns in a NumericMatrix object.
1 | permutations(x, num_permutations)
|
x |
NumericVector representing a vector that is to be permutated |
num_permutations |
Integer representing the number of permutations that are to be performed. |
a matrix containing in every column one permutations of the input vector
1 2 3 4 | x <- seq(1:10)
m <- permutations(x, 5)
dim(m)
#[1] 10 5
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.