Learn R Programming

sweidnumbr (version 1.5.0)

pin_sex: Calculate sex from pin

Description

Calculates the sex from the personal identification number.

Usage

pin_sex(pin)

Value

Factor with label 'Male' and 'Female'.

Arguments

pin

A vector of class pin. See as.pin.

References

Examples

Run this code
# Examples taken from SKV 704 (see references)
ex_pin <- c("196408233234", "186408233224")
pin_sex(ex_pin)

Run the code above in your browser using DataLab