Enumerating the possible combinations of a specified size from the elements of a vector
comb(n, r, v = 1:n, set = TRUE, repeats.allowed = FALSE)
Size of the source vector
Size of the target vectors
Source vector. Defaults to 1:n
Logical flag indicating whether duplicates should be removed from the source vector v
Logical flag indicating whether the constructed vectors may include duplicated values.
matrix
Internal function. comb
is called by partition
.