calcAge | R Documentation |
Function to calculate person's age at a specific point in time.
calcAge(birthday, givenday = today("UTC"))
birthday |
Date of birth ("YYYY-MM-DD"). |
givenday |
Date at which the age is computed ("YYYY-MM-DD"). |
Calculated as the difference between current date and birthday.
Calculated age in years.
calcAge("1981-08-12")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.