Learn R Programming

⚠️There's a newer version (1.1.0) of this package.Take me there.

Watch on GitHub Star on GitHub

hetu

Introduction

hetu is an R package for structural handling of identity numbers used in the Finnish administration, in particular the personal identity numbers (henkilötunnus). Some functions can also be used with Finnish Business ID numbers (y-tunnus).

The syntax in this package is unified with the similar package for Swedish ID numbers, the sweidnumbr.

Installation

To install from CRAN just write:

install.packages(hetu)

Use the devtools package to install the latest version from GitHub:

devtools::install_github("rOpenGov/hetu")
library(hetu)

A tutorial is included with the package and can be viewed with:

vignette("hetu")

Reporting bugs

Please use the GitHub issue tracker here for reporting bugs and making further feature requests.

IMPORTANT: When submitting a bug, you can make the lives of the developers easier by submitting the following information along with your bug report:

  • The output of sessionInfo()
  • The output of packageVersion("hetu")

Copy Link

Version

Install

install.packages('hetu')

Monthly Downloads

177

Version

1.0.1

License

BSD_2_clause + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Pyry Kantanen

Last Published

October 24th, 2020

Functions in hetu (1.0.1)

hetu_diagnostic

Diagnostics Tool for HETU
rpin

Generate a vector of random hetu
rbid

Generate a vector of random Finnish Business ID's (y-tunnus)
bid_ctrl

Check Finnish Business ID (y-tunnus) validity
pin_to_date-deprecated

ID to Date.
hetu

Finnish personal identification number extraction
pin_age

Age from ID
pin_sex

Sex From ID
pin_date

Get Birth date from PIN
hetu-deprecated

Deprecated functions in package hetu.
pin_ctrl

Finnish Personal Identification Number Validator