Adds standard age groups (the result of std_age_function()
) in the dataset
dd_age_standard(data, abridged = TRUE)
The data to be harmonized
TRUE/FALSE
The DemoData dataset with standard age groups appended to it.
Performs a full_join()
operation between the standard age groups dataset (the result of std_age_function()
) and the data to be harmonized,
using AgeStart
,AgeEnd
,AgeLabel
,AgeSpan
as keys. You can run getAnywhere(dd_age_standard)
to view the definition of this function.
if (FALSE) {
df <- firstages_compute_births_df
df <- dd_age_standard(df)
}