View source: R/calc_combination.r
calc_combination | R Documentation |
Computation of number of combinations/permutations.
calc_combination(n, r, order_matter = FALSE, with_repetition = FALSE)
n |
A numeric single value, that will be the total number of observations |
r |
A numeric single value, that will be the number of observations to be selected |
order_matter |
A boolean value, if TRUE the function will be a permutation, if not a combination (default = FALSE) |
with_repetition |
A boolean value, if TRUE the function will consider that there will be repetitions (default = FALSE) |
A numeric single value.
calc_combination(6,2)
calc_combination(6,2,order_matter = TRUE,with_repetition = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.