allcombs: All Combinations

Description Usage Arguments Value References Examples

View source: R/allcombs.R

Description

All possible combinations of the given number of items.

Usage

1
allcombs(num, from = 0, to = num)

Arguments

num

A scalar, the number of items.

from

A scalar, the minimum number of items in each combination, default 0.

to

A scalar, the maximum number of items in each combination, default num.

Value

A matrix with rows corresponding to each possible combination and columns corresponding to item number.

References

Based on a method posted by Petr Savicky on 20 Jul 2012 to R-help [link].

Examples

1

JVAdams/jvamisc documentation built on Aug. 11, 2021, 6:43 a.m.