age: Compute age

View source: R/age.R

ageR Documentation

Compute age

Description

Compute age of someone.

Usage

age(birthDate, refDate = Sys.Date(), unit = "year")

Arguments

birthDate

Date of birth

refDate

Reference date, Default: Sys.Date()

unit

Date unit, Default: 'year'

Value

OUTPUT_DESCRIPTION

See Also

as.period, interval


jtrampush/npsych.data documentation built on Feb. 25, 2025, 12:30 a.m.