Skip to contents

Calculates age

Usage

age(dob, age.day = today(), units = "years", floor = TRUE)

Arguments

dob

A date object, generally the date of birth

age.day

A date object, the date for which you want the age

units

Time unit, see unites from lubridate::duration

floor

Logical, returns integer

Value

Age of observation in defined units, years in default