comb {genpathmox} | R 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
[Package genpathmox version 1.1 Index]