powered by
pin
Calculates the sex from the personal identification number.
pin_sex(pin)
Factor with label 'Male' and 'Female'.
A vector of class pin. See as.pin.
Skatteverket, Population registration in Sweden. SKV 717B. (2007)
Skatteverket, Personnummer. SKV 704. (2007) SOU 2008:60 : Personnummer och samordningsnummer, (2008)
# Examples taken from SKV 704 (see references) ex_pin <- c("196408233234", "186408233224") pin_sex(ex_pin)
Run the code above in your browser using DataLab