combn_subset {jwutil}R Documentation

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

Description

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

Usage

combn_subset(x)

Arguments

x

vector to be subsetted and combined

Value

list of vectors with all combinations of x and its subsets

Examples

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

[Package jwutil version 1.2.3 Index]