Description Usage Arguments Details Value Examples
View source: R/calculate_age.R
Finds out the calendar year difference between two dates.
1 | calculate_age(givendate, birthdate)
|
givendate, birthdate |
POSIXt, Date or character vectors of equal length. |
For birthdate > givendate
NA
s are returned .
An integer vector of the same length as givendate
.
1 | calculate_age(Sys.Date(), "1988-02-29")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.