generate.combs: Generate all possible combinations of k elements out of n

Description Usage Arguments Value Author(s) See Also Examples

Description

This function generates all combinations of n elements taken k at a time. It is just a reference to the combn function in utils package.

Usage

1
generate.combs(n, k = 1)

Arguments

n

number of the whole elements

k

number of elements to choose (default 1)

Value

a matrix or a vector

Author(s)

Scott Chasalow wrote the original in 1994 for S; R package combinat and documentation by Vince Carey stvjc@channing.harvard.edu; small changes by the R core team.

See Also

utils::combn

Examples

1

StatMethRank documentation built on Jan. 15, 2017, 8:59 p.m.