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