Learn R Programming

combiter: Combinatorics Iterators for R

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.

Copy Link

Version

Install

install.packages('combiter')

Monthly Downloads

189

Version

1.0.3

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Kota Mori

Last Published

December 4th, 2017

Functions in combiter (1.0.3)

isubset

Subset Iterator
prevElem

Get Previous Element of Iterator
iperm

Permutation Iterator
hasPrev

Does This Iterator Have A Previous Element
icartes

Cartesian Product Iterator
recursiveiter

Factory of Iterators defined by Recursive Transition Functions
reexports

Objects exported from other packages
getFirst

First Value of Iterator
getLast

Last Value of Iterator
icomb

Combination Iterator