combination: combination

Description Usage Arguments Details Value Examples

Description

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.

Usage

1
combination(n, k, rep = F)

Arguments

n

numeric: number of elements to select from

k

numeric: number of elements selected

rep

logical: with or without repetition (default: FALSE)

Details

Value

numeric

Examples

1
2
combination(10, 3)
combination(10, 3, TRUE)

sigbertklinke/mmstat documentation built on May 14, 2019, 8:36 a.m.