Description Usage Arguments Value Author(s) See Also Examples
This function generates all combinations of n elements taken k at a time. It is just a reference to the combn function in utils package.
1 | generate.combs(n, k = 1)
|
n |
number of the whole elements |
k |
number of elements to choose (default 1) |
a matrix or a vector
Scott Chasalow wrote the original in 1994 for S; R package combinat and documentation by Vince Carey stvjc@channing.harvard.edu; small changes by the R core team.
utils::combn
1 | generate.combs(10, 6)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.