Description Usage Arguments Details Value Examples
Calculates ages in months with decimal days from date of birth until up to some point
1 | age_calc(dob, ref, lub.fmt = lubridate::mdy)
|
dob |
Date of birth string that the function |
ref |
Reference date string. Either today's date or some other time
after |
lub.fmt |
Lubridate function for the input dates, such as
|
If you're going to use a reference date, make sure the format for both dob and ref are the same. For example, don't use ymd for dob and mdy for ref. You'll get wrong values.
Numeric value of age in months
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.