add_age: Derive age and age band from year of birth

View source: R/add_age.R

add_ageR Documentation

Derive age and age band from year of birth

Description

Derive age and age band from year of birth

Usage

add_age(data, write = FALSE, measurefrom = Sys.time())

Arguments

data

a data table of patient data including at least patient id and age

write

boolean to save as parquet file

measurefrom

date to measure patient age at (eg registration date)

Value

data.table() of patient data with age and age band appended


HFAnalyticsLab/aurumpipeline documentation built on April 14, 2023, 12:34 p.m.