Changelog
Source:NEWS.md
ageutils 0.0.5
Adds new functions
reaggregate_counts()
andreaggregate_rates()
which provide a simplified API for reaggregation compared toreaggregate_interval_counts()
andreaggregate_interval_rates()
. These use an elegant approach to reaggregation suggested by @BlackEdder.-
Deprecates (with warning of class “deprecatedWarning”) the following functions:
aggregate_age_counts()
reaggregate_interval_counts()
reaggregate_interval_rates
split_interval_counts()
The use of these could be a little confusing and it was hard to achieve consistency with their APIs.
reaggregate_counts()
andreaggregate_rates()
can be used to replicate most of the old functionality.
ageutils 0.0.4
CRAN release: 2024-06-26
- Fixes an error in
reaggregate_interval_rates()
which caused the first entry of the output to be incorrect when thebreaks
were not specified from0
. Thanks to @BlackEdder for the report.
ageutils 0.0.2
CRAN release: 2024-03-06
aggregate_age_counts()
will now only return a row corresponding to NA ages if they were present in the input data. Previously an NA-associated row would always be returned even if it’s count was 0. Due to this changereaggregate_interval_counts()
will now never return an NA-associated row.split_interval_counts()
now matches the documentation and disallows missing (NA) bounds.breaks_to_interval()
andcut_ages()
both gain an argument,max_upper
which allows users to explicitly set the maximum upper bound.New function
reaggregate_interval_rates()
.For the vignette we now use markdown as a lighter alternative to rmarkdown.
ageutils 0.0.1
CRAN release: 2023-01-09
Initial release of ageutils
which provides a collection of efficient functions for working with individual ages and corresponding intervals. These include functions for efficient conversion from an age to an interval, aggregation of ages with associated counts in to intervals and the splitting of interval counts based on specified age distributions.
Functions are derived from those in the ympes with the intention being to remove these functions from that package in favour of this one going forward.