Calculate age in years, months, weeks or days from personal identity codes.
Arguments
- pin
Finnish personal identity code(s) as a character vector
- date
Date at which age is calculated. If a vector is provided it must be of the same length as the
pinargument.- timespan
Timespan to use to calculate age. The possible timespans are:
years(Default)monthsweeksdays
- allow.temp
Allow artificial or temporary PINs (personal numbers 900-999). If
FALSE(default), only PINs intended for official use (personal numbers 002-899) are allowed.
