convert date to age in days
Usage
dateToDaysOld(testDate, nowDate = Sys.Date(), units = "days", ...)Arguments
- testDate
 characterdate recognized byasDate(), representing the test date.- nowDate
 characterdate recognized byasDate(), representing the reference date, by default the current day.- units
 characterindicating the units, as used bydifftime().- ...
 additional parameters are ignored.