Description Usage Arguments Details Value
By default the age in days is computed. If age on different date should be computed use pdate_today with a different values. In case you want to get a real number as the age, then use pb_floor = FALSE.
1 | age_in_days(pdate_birth, pdate_today = lubridate::today(), pb_floor = TRUE)
|
pdate_birth |
date of birth |
pdate_today |
todays date |
pb_floor |
should age in days be rounded down |
— title: "Computing Utilities With Date-Times" date: "2020-02-06" author: "Peter von Rohr" —
## Disclaimer This file was added because the function is considered useful and it was nowhere else to put it. Hence with this, we believe it could be carried along and used in other places.
The function is based on https://stackoverflow.com/questions/14454476/get-the-difference-between-dates-in-terms-of-weeks-months-quarters-and-years
age in days
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.