pnr_to_bdate: Convert a personal number to birth date

Description Usage Arguments See Also Examples

View source: R/pnr_to_bdate.R

Description

Converts Swedish personal numbers (in the format "YYYYMMDD-XXXX", or "YYMMDD-XXXX") to birth dates. If the personal number is in the format "YYMMDD-XXXX", the function assumes that all YY values above 25 indicate someone born in the 1900's.

Usage

1

Arguments

pnr

a string/character value with a single personal number

See Also

sub

Examples

1
2
3
4
x <- "19400830-1111"
pnr_bdate(x)
y <- "090830-1111"
pnr_bdate(y)

AnonZebra/synratss documentation built on Oct. 9, 2021, 2:31 a.m.