comb | R Documentation |
############################################################################################
comb(n, r, v = 1:n, set = TRUE, repeats.allowed = FALSE)
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 |
Internal function
a matrix of combinations
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.