combination | R Documentation |
Form all unique combinations between two vectors (removing symmetric combinations).
.combination(..., levels = FALSE)
... |
[vectors] elements to be combined. |
levels |
[logical] should a label for each combination be output as an attribute named levels. |
A matrix, each row being a different combination.
.combination <- lavaSearch2:::.combination
.combination(1,1)
.combination(1:2,1:2)
.combination(c(1:2,1:2),1:2)
.combination(alpha = 1:2, beta = 3:4)
.combination(alpha = 1:2, beta = 3:4, gamma = 1:4)
.combination(alpha = 1:3, beta = 1:3, gamma = 1:3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.