age_in_unit | R Documentation |
Age in some units
age_in_unit(
DOB,
REFDATE = Sys.Date(),
years = TRUE,
months = TRUE,
weeks = TRUE,
days = TRUE
)
DOB, REFDATE |
Two dates |
years, months, weeks, days |
the units. |
DOB <- as.Date("1989-08-05")
TODAY <- Sys.Date()
age_in_unit(DOB, TODAY)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.