Description Usage Arguments Details Value Examples
Combinations are arrangements of selections of objects, where the order of the selected objects does not matter.
combination
computes the number of k
-element combinations of n
objects either with
repetition or not.
1 | combination(n, k, rep = F)
|
n |
numeric: number of elements to select from |
k |
numeric: number of elements selected |
rep |
logical: with or without repetition (default: FALSE) |
without repetitionC(n,k)=\choose{n}{k}
with repetitionC(n,k)=\choose{n+k-1}{k}
numeric
1 2 | combination(10, 3)
combination(10, 3, TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.