Rdocumentation
powered by
Learn R Programming
EnviroStat (version 0.4-2)
comb.all: 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
Run this code
comb.all(
5
,
3
)
Run the code above in your browser using
DataLab