poputils 0.4.2
Interface
- Modify function rr3to use C code. (#30)
- Modified tests for upcoming changes to package rvec(where random variant functions for discrete distributions will always return doubles).
poputils 0.4.1
CRAN release: 2025-03-27
- Modify C++ function qx_to_ex()to avoid possible memory leekage found by valgrind.
poputils 0.4.0
CRAN release: 2025-03-23
Interface
- If dataalready contains columns called"lx","Lx","dx","ex", thenlifetab()overwrites these columns, with a message, rather than creating new versions.
- 
atargument tolifeexp()can now be a vector with length > 1. In this case,lifeexp()calculates life expectancy for each value (within each combination of the ‘by’ variables, if present.)
- Added n_coreargument tolifetab()andlifeexp(). Settingn_coreto a value greater than 1 triggers parallel processing.
- Added closedargument tocheck_age(), to check whether the oldest age group is closed.
- Added function tfr()for calculating total fertility rates.
- Extended vignette.
Bug fixes
- 
combine_age()previously not working properly if"to"is"five", and lower limit of youngest age group inxnot divisible by 5.
- 
ex_to_lifetab_brass()previously assumed, without checking that age groups were correctly ordered.ex_to_lifetab_brass()now automatically reorders them.
poputils 0.3.3
CRAN release: 2024-09-14
Bug fixes
- Previously calling lifetab()with value supplied forqxcreated a duplicateqxcolumn in the result. The extra column has been removed.
New functions
- Added function check_n().
- Added function q0_to_m0().
- Added function rr3().
- Added function trim_01().
poputils 0.3.2
Internal
- Removed all uses of rvec::rvec.is.numeric(), in preparation for removing from rvec package.
Bug fixes
- Fixed bug in combine_age(). Previously giving wrong answers when last age group was closed.
