calcAge: calcAge

View source: R/core.R

calcAgeR Documentation

calcAge

Description

Function to calculate person's age at a specific point in time.

Usage

calcAge(birthday, givenday = today("UTC"))

Arguments

birthday

Date of birth ("YYYY-MM-DD").

givenday

Date at which the age is computed ("YYYY-MM-DD").

Details

Calculated as the difference between current date and birthday.

Value

Calculated age in years.

Examples

 calcAge("1981-08-12")

miraisolutions/SmaRP documentation built on March 23, 2022, 6:46 a.m.