Kindly cite the sweidnumbr R package as follows:

Magnusson, Mans and Bulow, Erik (2016). sweidnumbr: R tools to handle of swedish identity numbers. R package version 1.4.1 URL: http://github.com/rOpenGov/sweidnumbr

Corresponding BibTeX entry:

  @Misc{,
    title = {sweidnumbr: R tools to handle of swedish identity
      numbers.},
    author = {Mans Magnusson and Erik Bulow},
    url = {http://github.com/rOpenGov/sweidnumbr},
    year = {2016},
    note = {R package version 1.4.1},
  }