hetu

Finnish personal identification number (henkilotunnus / hetu) R package

https://github.com/ropengov/hetu

Science Score: 54.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    1 of 7 committers (14.3%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (16.7%) to scientific vocabulary

Keywords

cran r r-package ropengov rstats

Keywords from Contributors

finland health sotkanet-data-portal
Last synced: 6 months ago · JSON representation ·

Repository

Finnish personal identification number (henkilotunnus / hetu) R package

Basic Info
Statistics
  • Stars: 2
  • Watchers: 8
  • Forks: 2
  • Open Issues: 2
  • Releases: 2
Topics
cran r r-package ropengov rstats
Created over 5 years ago · Last pushed 8 months ago
Metadata Files
Readme Changelog License Citation

README.Rmd

---
output: github_document
---
  
```{r, echo = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "README-"
)
```




[![rOG-badge](https://ropengov.github.io/rogtemplate/reference/figures/ropengov-badge.svg)](https://ropengov.org/)
[![R build status](https://github.com/rOpenGov/hetu/workflows/R-CMD-check/badge.svg)](https://github.com/rOpenGov/hetu/actions)
[![codecov](https://codecov.io/gh/rOpenGov/hetu/branch/master/graph/badge.svg)](https://app.codecov.io/gh/rOpenGov/hetu)
[![Downloads](http://cranlogs.r-pkg.org/badges/grand-total/hetu)](https://cran.r-project.org/package=hetu)
[![Downloads](http://cranlogs.r-pkg.org/badges/hetu)](https://cran.r-project.org/package=hetu)
[![Watch on GitHub][github-watch-badge]][github-watch]
[![Star on GitHub][github-star-badge]][github-star]
[![cran version](http://www.r-pkg.org/badges/version/hetu)](https://CRAN.R-project.org/package=hetu)




# hetu - Structural Handling of Finnish Personal Identity Numbers 

### Introduction 

`hetu` is an R package for structural handling of identification codes used in Finland, most importantly Finnish flavour of national identification numbers, the Finnish personal identity codes (in Finnish: henkilötunnus (hetu), in Swedish: personbeteckning). Some functions can also be used with Finnish Business ID numbers (in Finnish: yritys- ja yhteisötunnus (y-tunnus), in Swedish: företags- och organisationsnummer (FO-nummer)) and Finnish Unique Identification Numbers (FINUID, in Finnish: sähköinen asiointitunnus (SATU), in Swedish: elektronisk kommunikationskod).

The syntax in this package aims to be, when convenient, similar with another package specializing in national identification numbers: the [sweidnumbr](https://github.com/rOpenGov/sweidnumbr) R package for working with Swedish personal identity numbers and corporation identity numbers.

### Installation

Install stable version from CRAN:

```{r install_stable, eval = FALSE}
install.packages(hetu)
```

Alternatively, use `devtools` package to install the latest development version from GitHub:

```{r install_dev, eval = FALSE}
devtools::install_github("rOpenGov/hetu")
```

Development version can be also installed using the
[r-universe](https://ropengov.r-universe.dev):

```{r, eval=FALSE}
# Enable this universe
options(repos = c(
  ropengov = "https://ropengov.r-universe.dev",
  CRAN = "https://cloud.r-project.org"
))
install.packages("hetu")
```

### Loading the package and accessing the tutorial

Loading the package in R command line:

```{r load_library, eval = TRUE}
library(hetu)
```

A simple example of printing a table containing data from 2 imaginary personal identity codes:

```{r hetu_printout, eval = TRUE}
example_hetu <- c("010101-0101", "111111-111C")
hetu(example_hetu)
```

The package can also be used to check the validity of Finnish Business IDs (Yritys- ja Yhteisötunnus, or Y-tunnus for short):

```{r bid_printout, eval = TRUE}
example_ytunnus <- c("5996039-9", "5619117-6", "6095515-9")
bid_ctrl(example_ytunnus)
```

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

```{r vignette, eval = FALSE}
vignette("hetu")
```

## Contributing

  * [Submit suggestions and bug reports](https://github.com/ropengov/hetu/issues) (provide the output of `sessionInfo()` and `packageVersion("hetu")` and preferably provide a [reproducible example](http://adv-r.had.co.nz/Reproducibility.html))
  * [Send a pull request](https://github.com/rOpenGov/hetu/pulls)
  * [Star us on the Github page](https://github.com/ropengov/hetu/)
  * [See our website](https://ropengov.org/community/) for additional contact information

## Acknowledgements

**Kindly cite this work** as follows (citing the related paper strongly preferred but we encourage also citing software used in research): 

```{r, comment="", prompt=TRUE, highlight=FALSE}
print(citation("hetu"), bibtex=TRUE)
```

We are grateful to all [contributors](https://github.com/rOpenGov/hetu/graphs/contributors)! This project is part of [rOpenGov](https://ropengov.org). 

[github-watch-badge]: https://img.shields.io/github/watchers/ropengov/hetu.svg?style=social
[github-watch]: https://github.com/ropengov/hetu/watchers
[github-star-badge]: https://img.shields.io/github/stars/ropengov/hetu.svg?style=social
[github-star]: https://github.com/ropengov/hetu/stargazers

Owner

  • Name: rOpenGov
  • Login: rOpenGov
  • Kind: organization
  • Location: Finland

Open government data analytics with R

Citation (CITATION.cff)

# -----------------------------------------------------------
# CITATION file created with {cffr} R package, v0.1.1
# See also: https://docs.ropensci.org/cffr/
# -----------------------------------------------------------
 
cff-version: 1.2.0
message: 'To cite package "hetu" in publications use:'
type: software
license: BSD-2-Clause
title: 'hetu: Structural Handling of Finnish Personal Identity Numbers'
version: 1.0.4.9000
abstract: Structural handling of Finnish identity numbers (persons and companies);
  extract information, check ID validity and diagnostics.
authors:
- family-names: Kantanen
  given-names: Pyry
  email: pyry.kantanen@gmail.com
  orcid: https://orcid.org/0000-0003-2853-2765
- family-names: Magnusson
  given-names: Mans
- family-names: Paananen
  given-names: Jussi
- family-names: Lahti
  given-names: Leo
  orcid: https://orcid.org/0000-0001-5537-637X
preferred-citation:
  type: generic
  title: 'hetu: Finnish personal ID number data toolkit for R'
  authors:
  - family-names: Kantanen
    given-names: Pyry
    email: pyry.kantanen@gmail.com
  - family-names: Magnusson
    given-names: Mans
  - family-names: Paananen
    given-names: Jussi
  - family-names: Lahti
    given-names: Leo
repository: https://CRAN.R-project.org/package=hetu
repository-code: https://github.com/ropengov/hetu
url: https://ropengov.github.io/hetu
contact:
- family-names: Kantanen
  given-names: Pyry
  email: pyry.kantanen@gmail.com
  orcid: https://orcid.org/0000-0003-2853-2765
keywords:
- ropengov
- r-package
- cran
- r
- rstats

GitHub Events

Total
  • Release event: 1
  • Push event: 8
  • Pull request event: 2
  • Create event: 1
Last Year
  • Release event: 1
  • Push event: 8
  • Pull request event: 2
  • Create event: 1

Committers

Last synced: 6 months ago

All Time
  • Total Commits: 163
  • Total Committers: 7
  • Avg Commits per committer: 23.286
  • Development Distribution Score (DDS): 0.264
Past Year
  • Commits: 6
  • Committers: 1
  • Avg Commits per committer: 6.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Pyry Kantanen p****n@g****m 120
GitHub Actions a****s@g****m 10
Leo l****i@i****i 9
Pyry Kantanen p****n@d****i 8
Pyry Kantanen p****n@P****l 8
dieghernan d****o@g****m 6
Måns Magnusson M****g 2
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 7
  • Total pull requests: 15
  • Average time to close issues: 7 months
  • Average time to close pull requests: 1 day
  • Total issue authors: 2
  • Total pull request authors: 4
  • Average comments per issue: 3.86
  • Average comments per pull request: 0.47
  • Merged pull requests: 14
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 1
  • Average time to close issues: N/A
  • Average time to close pull requests: 14 days
  • Issue authors: 0
  • Pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • antagomir (5)
  • pitkant (2)
Pull Request Authors
  • pitkant (10)
  • MansMeg (3)
  • antagomir (2)
  • dieghernan (1)
Top Labels
Issue Labels
enhancement (4) question (3) documentation (2) good first issue (1)
Pull Request Labels
documentation (1)

Packages

  • Total packages: 1
  • Total downloads:
    • cran 231 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 3
  • Total maintainers: 1
cran.r-project.org: hetu

Structural Handling of Finnish Personal Identity Codes

  • Versions: 3
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 231 Last month
Rankings
Forks count: 17.8%
Stargazers count: 28.5%
Dependent packages count: 29.8%
Dependent repos count: 35.5%
Average: 38.7%
Downloads: 81.8%
Maintainers (1)
Last synced: 6 months ago

Dependencies

DESCRIPTION cran
  • R >= 3.6.0 depends
  • checkmate * imports
  • lubridate * imports
  • parallel * imports
  • Cairo * suggests
  • covr * suggests
  • dplyr * suggests
  • knitr * suggests
  • rmarkdown * suggests
  • testthat * suggests