powered by
all unique combinations of a vector and all its non-zero subsets
combn_subset(x)
vector to be subsetted and combined
list of vectors with all combinations of x and its subsets
# 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