Package: partitions 1.11-1

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.11-1.tar.gz
partitions_1.11-1.zip(r-4.7)partitions_1.11-1.zip(r-4.6)partitions_1.11-1.zip(r-4.5)
partitions_1.11-1.tgz(r-4.6-x86_64)partitions_1.11-1.tgz(r-4.6-arm64)partitions_1.11-1.tgz(r-4.5-x86_64)partitions_1.11-1.tgz(r-4.5-arm64)
partitions_1.11-1.tar.gz(r-4.7-arm64)partitions_1.11-1.tar.gz(r-4.7-x86_64)partitions_1.11-1.tar.gz(r-4.6-arm64)partitions_1.11-1.tar.gz(r-4.6-x86_64)
partitions_1.11-1.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
partitions/json (API)
NEWS

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

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

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

On CRAN:

Conda:

cpp

11.17 score 10 stars 73 packages 247 scripts 15k downloads 47 exports 5 dependencies

Last updated from:e8794c8348. Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK113
linux-devel-x86_64OK120
source / vignettesOK266
linux-release-arm64OK117
linux-release-x86_64OK145
macos-release-arm64OK99
macos-release-x86_64OK232
macos-oldrel-arm64OK81
macos-oldrel-x86_64OK234
windows-develOK99
windows-releaseOK106
windows-oldrelOK89
wasm-releaseOK103

Exports:allbinomas.partitionbintocompblockpartscompositionscomptobincondenseconjugatediffpartsdurfeedurfee_sortedfirstblockpartfirstcompositionfirstdiffpartfirstpartfirstrestrictedpartgenrifislastblockpartislastcompositionislastdiffpartislastpartislastrestrictedpartlistPartsmsetmultinomialmultisetnextblockpartnextcompositionnextdiffpartnextpartnextrestrictedpartPpartspermsplainpermsQRrestrictedpartsrestrictedsetpartsrestrictedsetparts2riffleSsetpartstobintodecvec_to_eqvec_to_set

Dependencies:gmppolynomrbibutilsRdpacksets

Additive Integer Partitions

Rendered frompartitions.Rnwusingutils::Sweaveon May 21 2026.

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

Set partitions in R

Rendered fromsetpartitions.Rnwusingutils::Sweaveon May 21 2026.

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

Urn sampling without replacement

Rendered fromscrabble.Rnwusingutils::Sweaveon May 21 2026.

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