pin_sex {sweidnumbr} | R Documentation |
Calculate sex from pin
Description
Calculates the sex from the personal identification number.
Usage
pin_sex(pin)
Arguments
pin |
A vector of class |
Value
Factor with label 'Male' and 'Female'.
References
Skatteverket, Population registration in Sweden. SKV 717B. (2007)
Skatteverket, Personnummer. SKV 704. (2007) SOU 2008:60 : Personnummer och samordningsnummer, (2008)
Examples
# Examples taken from SKV 704 (see references)
ex_pin <- c("196408233234", "186408233224")
pin_sex(ex_pin)
[Package sweidnumbr version 1.5.0 Index]