The function helps calculating the age of person at the eventdate
calc_age(eventdate, birthdate, accuracy = "years")
eventdate | lubridate date when the age is needed |
---|---|
birthdate | lubridate date of person's birthdate |
Other date functions:
filter_date_first()
,
filter_date_last()
,
filter_date_nearest()