Description Usage Arguments Value See Also Examples
Recursively generates all permutations of a vector. The result will be factorial(length(vals))
long so be careful with any longer vectors (e.g. longer than 10).
1 | permute(vals)
|
vals |
a vector of elements to be permuted |
A list of vectors containing all permutation of the values
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.