dateToDaysOld: convert date to age in days

dateToDaysOldR Documentation

convert date to age in days

Description

convert date to age in days

Usage

dateToDaysOld(testDate, nowDate = Sys.Date(), units = "days", ...)

Arguments

testDate

character date recognized by asDate(), representing the test date.

nowDate

character date recognized by asDate(), representing the reference date, by default the current day.

units

character indicating the units, as used by difftime().

...

additional parameters are ignored.

Value

integer value with the number of calendar days before the current date, or the nowDate if supplied.

See Also

Other jam date functions: asDate(), getDate()

Examples

dateToDaysOld("23aug2007")


jmw86069/jamba documentation built on March 26, 2024, 5:26 a.m.