Description Usage Arguments Value Examples
Calculate ages from CPR numbers.
1 |
cpr |
Character vector of CPR numbers with or without hyphens. |
date |
Character or date vector of dates used in computation of ages. Dates provided as characters must follow the ISO standard, 'yyyy-mm-dd'. |
unit |
Character indicating the unit representing ages. Possible values are: 'year', 'month', 'week', 'day'. |
Numeric vector of ages. By default ages are computed in years. Note that year and month units are calculated by approximaion, 1 year = 365.25 days, 1 month = 30.44 days.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.