Learn R Programming

jwutil (version 1.2.3)

combn_subset: 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

Run this code
# NOT RUN {
combn_subset(c("a", "b"))
combn_subset(c(10, 20, 30))
combn_subset(NULL)
# }

Run the code above in your browser using DataLab