Skip to contents

Calculates the sex from the personal identification number.

Usage

pin_sex(pin)

Arguments

pin

A vector of class pin. See as.pin.

Value

Factor with label 'Male' and 'Female'.

References

Examples

# Examples taken from SKV 704 (see references)
ex_pin <- c("196408233234", "186408233224")
pin_sex(ex_pin)
#> [1] Male   Female
#> Levels: Female Male