add_age: Add age to a given reference date

View source: R/calculation_definitions.R

add_ageR Documentation

Add age to a given reference date

Description

Adds an interval (years) to a birthDate

Usage

add_age(birthDate, age, by = "year")

Arguments

age

numeric

by

default is "year", but can be, for example "-1 month"

birthdate

vector of dates

Value

vector of dates


DavidPatShuiFong/dMeasure documentation built on Aug. 2, 2024, 11:45 p.m.