Description Usage Arguments Value Author(s) See Also Examples
Finds all unordered combinations of
k elements from vector
Any numeric vector
Number of elements to choose from vector
v has length
n) creates a matrix with
n!/((n-k)! k!) (
k columns containing all possible combinations of
k at a time.
Jarek Tuszynski (SAIC) email@example.com
I discovered recently that R packages already have two functions with
combinations from gTools package and
Also similar to Matlab's
nchoosek function (http://www.mathworks.com/access/helpdesk/help/techdoc/ref/nchoosek.html)
1 2 3 4 5 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.