Learn R Programming

hetu (version 1.0.1)

pin_ctrl: Finnish Personal Identification Number Validator

Description

Validate Finnish personal identification numbers (hetu).

Usage

pin_ctrl(pin, allow.temp = FALSE)

hetu_ctrl(pin, allow.temp = FALSE)

Arguments

pin

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

allow.temp

If TRUE, temporary PINs (personal numbers 900-999) are handled similarly to regular PINs (personal numbers 002-899), meaning that otherwise valid temporary PIN will return a TRUE. Default is FALSE.

Value

Logical indicating whether the input string is a valid Finnish personal identification number,

See Also

hetu For extracting information from Finnish personal identification numbers.

Examples

Run this code
# NOT RUN {
pin_ctrl("010101-0101") # TRUE
pin_ctrl("010101-010A") # FALSE
hetu_ctrl("010101-0101") # TRUE
hetu_ctrl("010101-010A") # FALSE
# }

Run the code above in your browser using DataLab