combn_subset: all unique combinations of a vector and all its non-zero...

Description Usage Arguments Value Examples

View source: R/util.r

Description

all unique combinations of a vector and all its non-zero subsets

Usage

1

Arguments

x

vector to be subsetted and combined

Value

list of vectors with all combinations of x and its subsets

Examples

1
2
3
combn_subset(c("a", "b"))
combn_subset(c(10, 20, 30))
combn_subset(NULL)

jackwasey/jwutil documentation built on May 18, 2019, 7:58 a.m.