Adds standard age groups (the result of std_age_function()) in the dataset

dd_age_standard(data, abridged = TRUE)

Arguments

data

The data to be harmonized

abridged

TRUE/FALSE

Value

The DemoData dataset with standard age groups appended to it.

Details

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.

Examples

if (FALSE) {
df <- firstages_compute_births_df
df <- dd_age_standard(df)
}