comb: Combinations of a vector element

combR Documentation

Combinations of a vector element

Description

############################################################################################

Usage

comb(n, r, v = 1:n, set = TRUE, repeats.allowed = FALSE)

Arguments

n

size of the source vector

r

size of the target vectors

v

source vector. Defaults to 1:n

set

logical flag indicating whether duplicates should be removed from the source vector v

repeats.allowed

logical flag indicating whether the constructed vectors may include duplicated values

Details

Internal function

Value

a matrix of combinations


genpathmox documentation built on Oct. 26, 2023, 5:08 p.m.

Related to comb in genpathmox...