Package: iterpc 0.4.2

iterpc: Efficient Iterator for Permutations and Combinations

Iterator for generating permutations and combinations. They can be either drawn with or without replacement, or with distinct/ non-distinct items (multiset). The generated sequences are in lexicographical order (dictionary order). The algorithms to generate permutations and combinations are memory efficient. These iterative algorithms enable users to process all sequences without putting all results in the memory at the same time. The algorithms are written in C/C++ for faster performance. Note: 'iterpc' is no longer being maintained. Users are recommended to switch to 'arrangements'.

Authors:Randy Lai [aut, cre]

iterpc_0.4.2.tar.gz
iterpc_0.4.2.zip(r-4.5)iterpc_0.4.2.zip(r-4.4)iterpc_0.4.2.zip(r-4.3)
iterpc_0.4.2.tgz(r-4.5-any)iterpc_0.4.2.tgz(r-4.4-any)iterpc_0.4.2.tgz(r-4.3-any)
iterpc_0.4.2.tar.gz(r-4.5-noble)iterpc_0.4.2.tar.gz(r-4.4-noble)
iterpc_0.4.2.tgz(r-4.4-emscripten)iterpc_0.4.2.tgz(r-4.3-emscripten)
iterpc.pdf |iterpc.html
iterpc/json (API)

# Install 'iterpc' in R:
install.packages('iterpc', repos = c('https://randy3k.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/randy3k/iterpc/issues

Pkgdown site:https://randy3k.github.io

On CRAN:

7.12 score 9 stars 5 packages 47 scripts 2.1k downloads 9 exports 4 dependencies

Last updated 5 years agofrom:a97e58b051. Checks:8 OK. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKJan 30 2025
R-4.5-winOKJan 30 2025
R-4.5-macOKJan 30 2025
R-4.5-linuxOKJan 30 2025
R-4.4-winOKJan 30 2025
R-4.4-macOKJan 30 2025
R-4.3-winOKJan 30 2025
R-4.3-macOKJan 30 2025

Exports:getallgetcurrentgetlengthgetnextiter_wrapperiterpcmultichoosenc_multisetnp_multiset

Dependencies:arrangementsgmpiteratorsR6

Examples of generating combinations

Rendered fromcombinations.Rmdusingknitr::rmarkdownon Jan 30 2025.

Last update: 2016-12-03
Started: 2016-12-03

Examples of generating permutations

Rendered frompermutations.Rmdusingknitr::rmarkdownon Jan 30 2025.

Last update: 2016-12-03
Started: 2016-12-03