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:

7.22 score 9 stars 5 packages 44 scripts 2.8k downloads 9 exports 4 dependencies

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

TargetResultDate
Doc / VignettesOKNov 01 2024
R-4.5-winOKNov 01 2024
R-4.5-linuxOKNov 01 2024
R-4.4-winOKNov 01 2024
R-4.4-macOKNov 01 2024
R-4.3-winOKNov 01 2024
R-4.3-macOKNov 01 2024

Exports:getallgetcurrentgetlengthgetnextiter_wrapperiterpcmultichoosenc_multisetnp_multiset

Dependencies:arrangementsgmpiteratorsR6

Examples of generating combinations

Rendered fromcombinations.Rmdusingknitr::rmarkdownon Nov 01 2024.

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

Examples of generating permutations

Rendered frompermutations.Rmdusingknitr::rmarkdownon Nov 01 2024.

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