Skip to contents


sweidnumbr is an R package for structural handling of identity numbers used in the swedish administration such as personal identity numbers (personnummer) and organizational identity numbers (organisationsnummer). For a quick introduction on how to use the package, see the vignette.


To install from CRAN just write:


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


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


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("sweidnumbr")