comb.all: Enumerate all combinations

Description Usage Arguments Value Examples

Description

Function to enumerate all combinations of size 'k' from the set 1,.., n.

Usage

1
comb.all(n, k)

Arguments

n

number of elements in the set

k

number of elements to choose for each combination

Value

An (n-choose-k) by k matrix with one combination per row.

Examples

1
comb.all(5, 3)

Example output



EnviroStat documentation built on May 2, 2019, 2:32 p.m.