Learn R Programming

hetu (version 1.0.1)

pin_sex: Sex From ID

Description

Extract sex from Finnish personal identification number.

Usage

pin_sex(pin, allow.temp = TRUE)

hetu_sex(pin, allow.temp = TRUE)

Arguments

pin

Finnish personal identification number as a character vector, or vector of identification numbers as a character vectors

allow.temp

Allow artificial or temporary PINs (personal numbers 900-999). If FALSE (default), only PINs intended for official use (personal numbers 002-899) are allowed.

Value

Factor with label 'Male' and 'Female'.

See Also

hetu For general information extraction

Examples

Run this code
# NOT RUN {
pin_sex("010101-010A") 
hetu_sex("010101-010A") 
# }

Run the code above in your browser using DataLab