View source: R/source_varsel.R
all_subsets | R Documentation |
Given a set of variables, compute the inclusion indicators for all possible subsets.
all_subsets(set)
set |
the set from which to compute all subsets (e.g., |
a data frame where the rows indicate the 2^p
different subsets
and the columns indicate inclusion (logical) for each element in that subset
Code adapted from <https://www.r-bloggers.com/2012/04/generating-all-subsets-of-a-set/>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.