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.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

On CRAN:

9 exports 9 stars 2.29 score 4 dependencies 5 dependents 44 scripts 2.7k downloads

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

TargetResultDate
Doc / VignettesOKSep 02 2024
R-4.5-winOKSep 02 2024
R-4.5-linuxOKSep 02 2024
R-4.4-winOKSep 02 2024
R-4.4-macOKSep 02 2024
R-4.3-winOKSep 02 2024
R-4.3-macOKSep 02 2024

Exports:getallgetcurrentgetlengthgetnextiter_wrapperiterpcmultichoosenc_multisetnp_multiset

Dependencies:arrangementsgmpiteratorsR6

Examples of generating combinations

Rendered fromcombinations.Rmdusingknitr::rmarkdownon Sep 02 2024.

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

Examples of generating permutations

Rendered frompermutations.Rmdusingknitr::rmarkdownon Sep 02 2024.

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