powered by
Form all unique combinations between two vectors (removing symmetric combinations).
.combination(...)
[vectors] elements to be combined.
A matrix, each row being a different combination.
# NOT RUN { .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) # }
Run the code above in your browser using DataLab