get_age | R Documentation |
Returns the fractional age in years, months or days between the start_date and the end_date.
get_age(start_date, end_date, unit)
start_date |
a POSIXct or POSIXt object with the beginning date (such as a birth date). |
end_date |
a POSIXct or POSIXt object with the ending date (such as a death date). |
unit |
one of c("year", "month", "week", "day") that become the unit used as the devisor for the time interval. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.