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.
Versions across snapshots
| Version | Repository | File | Size |
|---|---|---|---|
0.1.0 |
rolling linux/jammy R-4.5 | proratar_0.1.0.tar.gz |
15.2 KiB |
0.1.0 |
rolling linux/noble R-4.5 | proratar_0.1.0.tar.gz |
15.1 KiB |
0.1.0 |
rolling source/ R- | proratar_0.1.0.tar.gz |
3.5 KiB |
0.1.0 |
latest linux/jammy R-4.5 | proratar_0.1.0.tar.gz |
15.2 KiB |
0.1.0 |
latest linux/noble R-4.5 | proratar_0.1.0.tar.gz |
15.1 KiB |
0.1.0 |
latest source/ R- | proratar_0.1.0.tar.gz |
3.5 KiB |
0.1.0 |
2026-04-23 source/ R- | proratar_0.1.0.tar.gz |
0 B |
Dependencies (latest)
Suggests
- testthat (>= 3.0.0)