age.in.years | R Documentation |
Computes the age of a person (in years) on a specified date from the person's date of birth.
age.in.years(on.this.date, birth.date)
on.this.date |
A vector of |
birth.date |
A vector of |
An integer vector containing the age in years.
Benjamin Rich <mail@benjaminrich.net>
difftime
age.in.years(
as.Date(c("2012-03-01", "2012-02-29", "2012-02-28")),
as.Date(c("1980-02-03", "1980-02-29", "1980-05-28")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.