View source: R/age_functions.r
calculate_age | R Documentation |
Calculate current age
calculate_age(birthdate, asOfDate = Sys.Date())
birthdate |
Birthdate in character (YYYY-MM-DD) or as class date. |
asOfDate |
The date to calculate the age. Default is the system date. |
Age in years as numeric
## Not run: calculate_age("1950-01-01")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.