Learn R Programming

⚠️There's a newer version (1.1.9) of this package.Take me there.

Fast Generators and Iterators for Permutations, Combinations and Partitions

Github: https://github.com/randy3k/arrangements

Documentation: http://randy3k.github.io/arrangements

Fast generators and iterators for permutations, combinations and partitions. The iterators allow users to generate arrangements in a memory efficient manner and the generated arrangements are in lexicographical (dictionary) order. Permutations and combinations can be drawn with/without replacement and support multisets. It has been demonstrated that ‘arrangements’ outperforms most of the existing packages of similar kind. Some benchmarks could be found at https://randy3k.github.io/arrangements/articles/benchmark.html.

Installation

Install the latest development version using

devtools::install_github("randy3k/arrangements")

Copy Link

Version

Install

install.packages('arrangements')

Monthly Downloads

3,373

Version

1.0.0

License

MIT + file LICENSE

Maintainer

Randy Lai

Last Published

January 10th, 2018

Functions in arrangements (1.0.0)

partitions

Partitions generator
permutations

Permutations generator
Permutations

Permutations iterator
ncombinations

Number of combinations
npartitions

Number of partitions
npermutations

Number of permutations
Combinations

Combinations iterator
Partitions

Partitions iterator
arrangements-package

arrangements: Fast Generators and Iterators for Permutations, Combinations and Partitions
combinations

Combinations generator