perm | R Documentation |
perm(v) lists permutations of a vector v with distinct entries. The output is a matrix with each row a permutation. It cannot distinguish identical permutations.
perm(v)
v |
is a vector with distinct entries. |
an n! by n matrix with each row a permuation of the enties of v.
permucycle
, permuorder
,cycledisplay
x <- sample(c((-10):10),3)
perm(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.