comb.binary: To get the binary combination of several factors

Description Usage Arguments Value Author(s) Examples

Description

You can use this package to get binary combinations of several factors.Great thanks to Marat Talipov

Usage

1

Arguments

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

Value

a matrix

Author(s)

Jing Zhang

Examples

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)

yikeshu0611/comb.binary documentation built on May 9, 2019, 8:08 a.m.