Description Usage Arguments Value Author(s) Examples
You can use this package to get binary combinations of several factors.Great thanks to Marat Talipov
1 | comb.binary(vector, n)
|
vector |
a vector of factors that you want to be combinated |
n |
the combination number. If n is missing, function comb.binary will return the whole possible combinations |
a matrix
Jing Zhang
1 2 3 4 | comb.binary(1:4)
comb.binary(c(1,3,4),2)
comb.binary(c("a","b","c"))
comb.binary(c("a","b","c"),2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.