birthdayFromCPR: A function for calculating the birthday from a CPR number,...

Description Usage Arguments Value Examples

View source: R/stringmanipulation.R

Description

A function for calculating the birthday from a CPR number, taking the century into account

Usage

1

Arguments

cpr

CPR number. Any format will work.

Value

a Date of the birthday

Examples

1
2
3
4
5
birthdayFromCPR("290511-4487")
returns "2011-05-29"

birthdayFromCPR("290511-3487")
returns "1911-05-29"

jacobfredsoee/LCEF documentation built on Feb. 7, 2021, 8:10 p.m.