create_age_groups: Create age group categories

Description Usage Arguments Value

View source: R/ita_data_prep_functions.R

Description

Given a set of age cutoffs starting at 0, this function deterministically creates a data.table of age groupings with IDs and lower/upper bounds for each age group

Usage

1
create_age_groups(age_cutoffs = seq(0, 100, by = 20))

Arguments

age_cutoffs

Vector of lower bounds for each age group, starting at 0

Value

Data.table containing age group categories


njhenry/covidemr documentation built on Feb. 2, 2022, 2:31 a.m.