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


brainworkup/npsych.data documentation built on April 14, 2025, 6:14 p.m.