age_in_years | R Documentation |
Computes number of yearly anniversaries between two dates. Useful for computing tha age of a person at death or some other event.
age_in_years(begin_date, end_date)
begin_date |
Beginning date (usually birth). |
end_date |
Ending date (usually death). |
Number of anniversaries of begin_date (usually person's age).
# Dave Brubeck
age_in_years("1920-12-06", "2012-12-05")
# John F. Kennedy
age_in_years("1917-05-29", "1963-11-22")
# Elvis Presley
age_in_years("1935-01-08", "1977-08-16")
# Groucho Marx
age_in_years("1890-10-02", "1977-08-19")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.