Description Usage Arguments Value Author(s) Examples
Converts a vector of dates (class 'Date') to ages. Function needs birth dates.
1 | Date_as_age (x,format.in,born)
|
x |
Vector of dates of class 'Date' |
format.in |
date format |
born |
Vector of dates of birth. Birth dates have the same format as the other dates. |
age.sec |
Age in seconds |
age.day |
Age in days |
age |
Age in years, months and days (produced by package lubridate) |
age.year |
Age in decimal year |
Frans Willekens
1 | Date_as_age ("2010-10-30","%Y-%m-%d","1990-4-20")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.