proratar: Proportional Allocation with Sum Consistency

Provides robust functions for proportional allocation of numeric values. It guarantees sum consistency after rounding or integer truncation using one of two adjustment methods: the largest remainder method or max-value adjustment. Handles edge cases like NA weights and vector total values seamlessly.

Version: 0.1.0
Suggests: testthat (≥ 3.0.0)
Published: 2026-06-18
DOI: 10.32614/CRAN.package.proratar (may not be active yet)
Author: Shunsuke Homma [aut, cre]
Maintainer: Shunsuke Homma <shunsuke.homma at proton.me>
License: MIT + file LICENSE
NeedsCompilation: no
CRAN checks: proratar results

Documentation:

Reference manual: proratar.html , proratar.pdf

Downloads:

Package source: proratar_0.1.0.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): proratar_0.1.0.tgz, r-oldrel (arm64): proratar_0.1.0.tgz, r-release (x86_64): proratar_0.1.0.tgz, r-oldrel (x86_64): proratar_0.1.0.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=proratar to link to this page.