Package: partitions 1.10-8

partitions: Additive Partitions of Integers

Additive partitions of integers. Enumerates the partitions, unequal partitions, and restricted partitions of an integer; the three corresponding partition functions are also given. Set partitions and now compositions and riffle shuffles are included.

Authors:Robin K. S. Hankin [aut, cre], Paul Egeler [ctb]

partitions_1.10-8.tar.gz
partitions_1.10-8.zip(r-4.5)partitions_1.10-8.zip(r-4.4)partitions_1.10-8.zip(r-4.3)
partitions_1.10-8.tgz(r-4.4-x86_64)partitions_1.10-8.tgz(r-4.4-arm64)partitions_1.10-8.tgz(r-4.3-x86_64)partitions_1.10-8.tgz(r-4.3-arm64)
partitions_1.10-8.tar.gz(r-4.5-noble)partitions_1.10-8.tar.gz(r-4.4-noble)
partitions_1.10-8.tgz(r-4.4-emscripten)partitions_1.10-8.tgz(r-4.3-emscripten)
partitions.pdf |partitions.html
partitions/json (API)

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

Peer review:

Bug tracker:https://github.com/robinhankin/partitions/issues

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

72 exports 9 stars 5.76 score 6 dependencies 75 dependents 173 scripts 6.5k downloads

Last updated 21 days agofrom:fd7d31d6eb. Checks:OK: 9. Indexed: yes.

TargetResultDate
Doc / VignettesOKAug 28 2024
R-4.5-win-x86_64OKAug 28 2024
R-4.5-linux-x86_64OKAug 28 2024
R-4.4-win-x86_64OKAug 28 2024
R-4.4-mac-x86_64OKAug 28 2024
R-4.4-mac-aarch64OKAug 28 2024
R-4.3-win-x86_64OKAug 28 2024
R-4.3-mac-x86_64OKAug 28 2024
R-4.3-mac-aarch64OKAug 28 2024

Exports:allbinomas.matrix.partitionas.partitionbintocompblockpartsc_allblockpartsc_alldiffpartsc_allpartsc_allpermsc_allrestrictedpartsc_bintocompc_comptobinc_conjugatec_durfeec_nextblockpartc_nextdiffpartc_nextpartc_nextrestrictedpartc_numbdiffpartsc_numbpartsc_plainpermsc_tobinc_wrapcompositionscomptobincondenseconjugatediffpartsdurfeedurfee_sortedfirstblockpartfirstcompositionfirstdiffpartfirstpartfirstrestrictedpartgenrifislastblockpartislastcompositionislastdiffpartislastpartislastrestrictedpartlistPartsmsetmultinomialmultisetnextblockpartnextcompositionnextdiffpartnextpartnextrestrictedpartnumbrestrictedparts_RPpartspermsplainpermsprintprint.equivalenceprint.partitionprint.summary.partitionQRrestrictedpartsrestrictedsetpartsrestrictedsetparts2riffleSsetpartssummary.partitiontobintodecvec_to_eqvec_to_set

Dependencies:gmpmathjaxrpolynomrbibutilsRdpacksets

Additive Integer Partitions

Rendered frompartitions.Rnwusingutils::Sweaveon Aug 28 2024.

Last update: 2024-02-24
Started: 2024-02-24

Set partitions in R

Rendered fromsetpartitions.Rnwusingutils::Sweaveon Aug 28 2024.

Last update: 2024-02-24
Started: 2017-08-21

Urn sampling without replacement

Rendered fromscrabble.Rnwusingutils::Sweaveon Aug 28 2024.

Last update: 2024-02-24
Started: 2017-08-21

Readme and manuals

Help Manual

Help pageTopics
Integer partitionspartitions-package partitions
Coerce partitions to matrices and vice versaas.matrix.partition as.partition
Sundry binary functionalitybin bintocomp comptobin tobin todec
Condensed form for partitionscondense
Conjugate partitions and Durfee squaresconjugate Durfee durfee durfee_sorted
Next partitionfirstblockpart firstcomposition firstdiffpart firstpart firstrestrictedpart islastblockpart islastcomposition islastdiffpart islastpart islastrestrictedpart nextblockpart nextcomposition nextdiffpart nextpart nextrestrictedpart
Number of partitions of an integerP Q R S
Enumerate the partitions of an integerallbinom blockparts compositions c_allblockparts c_alldiffparts c_allparts c_allperms c_allrestrictedparts c_bintocomp c_comptobin c_conjugate c_durfee c_multiset c_nextblockpart c_nextdiffpart c_nextpart c_nextrestrictedpart c_numbdiffparts c_numbparts c_plainperms c_tobin c_wrap diffparts mset multinomial multiset numbrestrictedparts_R parts restrictedparts
Enumerate the permutations of a vectorperms plainperms
Print methods for partition objects and equivalence objectsprint print.equivalence print.partition print.summary.partition
Riffle shufflesallriffles genrif riffle
Set partitionslistParts restrictedsetparts restrictedsetparts2 setparts vec_to_eq vec_to_set
Provides a summary of a partitionsummary.partition