Calculates the sex from the personal identification number.
A vector of class pin. See as.pin.
Factor with label 'Male' and 'Female'.
Population registration in Sweden
SOU 2008:60 : Personnummer och samordningsnummer
# Examples taken from SKV 704 (see references)
ex_pin <- c("196408233234", "186408233224")
Questions? Problems? Suggestions? Tweet to @rdrrHQian@mutexlabs.com.
Please suggest features or report bugs with the GitHub issue tracker.
All documentation is copyright its authors; we didn't write any of that.