View source: R/data_transformation.R
compute_age | R Documentation |
Computes the age given a birth year or a birth date
compute_age(x, age_spec = NULL, reference_year = NULL)
x |
a string or number vector to be transformed |
age_spec |
a string indicating the age specification, can be one of
|
reference_year |
a number indicating the reference year in order to
compute the age from a birth year or birth date. If |
a numeric vector of ages
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.