pin_sex: Calculate sex from 'pin'

Description Usage Arguments Value References Examples

Description

Calculates the sex from the personal identification number.

Usage

1
pin_sex(pin)

Arguments

pin

A vector of class pin. See as.pin.

Value

Factor with label 'Male' and 'Female'.

References

Population registration in Sweden SKV 704 SOU 2008:60 : Personnummer och samordningsnummer

Examples

1
2
3
# Examples taken from SKV 704 (see references)
ex_pin <- c("196408233234", "186408233224")
pin_sex(ex_pin)


Search within the sweidnumbr package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@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.