pin_birthplace | R Documentation |
pin
Calculate the birthplace for a given personal identity number born before 1990. See details.
pin_birthplace(pin)
pin |
A vector of class |
It is possible to calculate where people where born (and/or if a person has immigrated) through their personal identity number. This is possible for people that was born before 1990 and after 1945.
For people born before 1946 the birthplace identifier contains information on where one where registered the 1st of november 1946.
Personal identity numbers for people born after 1989 do not contain any information on birthplace.
During the period 1946 - 1989 the pin also contains information on whether one has immigrated to Sweden during the period.
Birthplace as factor.
SOU 2008:60 : Personnummer och samordningsnummer
# Example with someone born today and from SKV 704 (see references)
today_pin <- paste0(format(Sys.Date(),"%Y%m%d"), "0000")
ex_pin <- c("196408233234", today_pin)
pin_birthplace(ex_pin)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.