Combinations | R Documentation |
Computes all possible combinations of n
objects taken k
at a
time.
Combinations(n, k)
n |
a number. |
k |
a number less than or equal to |
Returns a matrix containing the possible combinations of n
objects taken k
at a time.
SRS
Combinations(5,2)
# The columns in the matrix list the values of the 10 possible
# combinations of 5 things taken 2 at a time.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.