This package provides iterators for combinations, permutations, subsets, and cartesian product, with which one can go through the elements without creating a huge set of all possible values.
Since v1.0.2
, the iterator objects of the package inherit the iter
class from iterators package. As a result, the objects are also compatible with foreach library.
Install from CRAN by:
install.packages("combiter")
Or install development version by:
devtools::install_github("kota7/combiter")
Use by
library(combiter)
Please visit the Documentation Page for the package introduction.