as_age_group: Age as age group

View source: R/RcppExports.R

as_age_groupR Documentation

Age as age group

Description

Returns the age group a certain age belongs to given the upper age group limits

Usage

as_age_group(age, limits = as.numeric(c(1, 5, 15, 25, 45, 65)))

Arguments

age

The relevant age. This can be a vector.

limits

The upper limit to each age groups (not included) (1,5,15,25,45,65) corresponds to the following age groups: <1, 1-4, 5-14, 15-24, 25-44, 45-64 and >=65.

Value

Factors representing the age group(s)


MJomaba/flu-evidence-synthesis documentation built on April 26, 2022, 11:12 p.m.