| getAgeInDays | R Documentation |
The whole number of days between a birth date and a reference date,
both written as yyyymmdd.
getAgeInDays(currDate, birthDate)
currDate |
Reference date(s), |
birthDate |
Birth date(s), |
The result is in days. Convert it to years (/ 365.25) only when
you need the age on the scale a rate function expects. The age reported
in the simulation output is also years on that scale (days / 365.25,
rounded to two decimals). Event dates, in contrast, are never put on
the year scale: they go through the exact calendar in getInDateFormat().
Integer vector of days. Negative when currDate is before
birthDate; this is not treated as an error here.
getInDays()
getAgeInDays(20200826, 19800605)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.