Degrees of the Combination sets

comb_degree(m)

Arguments

m

A combination matrix returned by make_comb_mat.

Details

The degree for a combination set is the number of sets that are selected.

Value

A vector of degrees of the combination sets.

Examples

set.seed(123) lt = list(a = sample(letters, 10), b = sample(letters, 15), c = sample(letters, 20)) m = make_comb_mat(lt) comb_degree(m)
#> 010 001 110 101 011 111 #> 1 1 2 2 2 3