Learn R Programming

sorvi (version 0.4.05)

hetu: Extract information from a Finnish personal identification number (HETU).

Description

Extract information from a Finnish personal identification number (HETU).

Usage

hetu(hetu)

Arguments

hetu
Finnish personal identification number as a string

Value

  • Finnish personal identification number object. Returns NA if the given string is not a valid Finnish personal identification number.
  • hetuFinnish personal identification number as a string.
  • genderGender of the person. Male or Female.
  • personal.numberPersonal number part of the identification number.
  • checksumChecksum for the personal identification number.
  • dateBirthdate.
  • dayDay of the birthdate.
  • monthMonth of the birthdate.
  • yearYear of the birthdate.
  • century.charCentury of the birthdate: + (1800), - (1900) or A (2000).

See Also

valid.hetu For validating Finnish personal identification number.

Examples

Run this code
hetu("111111-111C")
hetu("111111-111C")$date
hetu("111111-111C")$gender

Run the code above in your browser using DataLab