permsn | R Documentation |
Generate all permutations of the elements of x taken m at a time. If x is a positive integer, returns all permutations of the elements of seq(x) taken m at a time.
permsn(x, m)
x |
vector source for permutations, or integer n for x <- seq(n). |
m |
number of elements to permute. |
a list or array (in nondegenerate cases).
G. Jay Kerns gkerns@ysu.edu, modified from the combn
function in the package utils
.
combn
permsn(3, 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.