Learn R Programming

sweidnumbr (version 1.5.0)

Handling of Swedish Identity Numbers

Description

Structural handling of identity numbers used in the Swedish administration such as personal identity numbers ('personnummer') and organizational identity numbers ('organisationsnummer').

Copy Link

Version

Install

install.packages('sweidnumbr')

Monthly Downloads

246

Version

1.5.0

License

BSD_2_clause + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

January 13th, 2024

Functions in sweidnumbr (1.5.0)

pin_to_date-deprecated

Calculate the date of birth from a pin
rpin

Generate a vector of random pin
pin_to_date

Deprecated functions in package sweidnumbr.
format_pin

Formatting pin
pin_birthplace_internal

pin_birthplace_internal
roin

Generate a vector of random oin
pin_century

pin_century
pin_coordn

Check if pin is a coordination number
pin_convert

pin_convert
is.oin

Test if a character vector contains correct oin
sweidnumbr

sweidnumbr
fake_pins

Fake personal identity numbers and names
oin_group

Calculate organization group from oin
oin_ctrl

Check the control numbers for oin
oin_group_element

oin_group_element
create_s3_method

Create S3 methods
as.oin

Parse organizational identity numbers
luhn_algo

The Luhn algorithm
as.pin

Parse personal identity numbers to ABS format
pin_birthplace

Calculate the birthplace of pin
pin_ctrl

Check control number from pin
pin_age

Calculate age of pin for a given date
pin_date

Calculate the date of birth from a pin
pin_coordn_correct

pin_coordn_correct
pin_sex

Calculate sex from pin