Calculate age in years, months, or days
Usage
age_calc(dob, enddate = Sys.Date(), units = "years", precise = TRUE)
Arguments
- dob
Date of birth
- enddate
End date for age calculation (default is Sys.Date())
- units
Units for age calculation (default is "years"). Can be c("days", "months", "years")
- precise
Option to calculate age precisely (default is TRUE)