Generates all permutations of a vector
numeric vector of some length
a is a vector of length
n, generate all permutations
of the elements in
a as a matrix of size
n! x n where
each row represents one permutation.
A matrix will be expanded as vector.
matrix of permutations of the elements of
Not feasible for
length(a) > 10.
1 2 3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.