current_age: Current age in integral years between two Dates

View source: R/date_time.R

current_ageR Documentation

Current age in integral years between two Dates

Description

Returns the current age (integer) based on a date of birth. The fraction is truncated.

Usage

current_age(dob)

Arguments

dob

date of birth

Value

integer - age in years

Examples


dob<-as.Date("2000-01-01")
current_age(dob)

JahNorr/orrr documentation built on Jan. 29, 2025, 5:11 p.m.