Combinatorics Iterators

Provides iterators for combinations, permutations, subsets, and Cartesian product, which allow one to go through all elements without creating a huge set of all possible values.


Build Status CRAN Status AppVeyor Build Status

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.

Installation and import

Install from CRAN by:

install.packages("combiter")

Or install development version by:

devtools::install_github("kota7/combiter")

Use by

library(combiter)

Usage

Please visit the Documentation Page for the package introduction.

News

combiter v1.0.3 (Release date: 2017-12-04)

  • more concise unittest for subset iterator

combiter v1.0.2 (Release date: 2017-05-17)

  • function name change incrementaliter --> recursiveiter

combiter v1.0.1 (Release date: 2017-05-15)

  • all iterators inherits abstractiter and iter class from iterators package.
  • all iterators are foreach-eable
  • added icartes, a Cartesian product iterator
  • added "value" version of each iterator, ipermv, iconbv, isubsetv and icartesv

combiter v0.1.1 (Release date: 2016-09-26)

  • initial version, uploaded on CRAN
  • iperm, icomb and isubset implemented

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("combiter")

1.0.3 by Kota Mori, a year ago


https://github.com/kota7/combiter


Report a bug at https://github.com/kota7/combiter/issues


Browse source code at https://github.com/cran/combiter


Authors: Kota Mori [aut, cre]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports iterators, itertools, Rcpp

Suggests combinat, foreach, testthat

Linking to Rcpp


Suggested by tictactoe.


See at CRAN