comb.all {EnviroStat}R Documentation

Enumerate all combinations

Description

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

Usage

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

comb.all(5, 3)

[Package EnviroStat version 0.4-2 Index]