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 Oct. 9, 2024, 10:52 a.m.