compute_age {logib} | R Documentation |
Compute age values
Description
Computes the age given a birth year or a birth date
Usage
compute_age(x, age_spec = NULL, reference_year = NULL)
Arguments
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 |
Value
a numeric vector of ages
[Package logib version 0.2.0 Index]