R package for Structural handling of identity numbers used in the swedish administration such as personal identity numbers (personnummer) and organizational identity numbers (organisationsnummer).
Invalid lenght of input to oin_ctrl() returns wrong result or throws an error
oin_ctrl("556000-46155") # Should return NA
#> [1] TRUE
oin_ctrl("556000-461", force_logical = TRUE)
#> Error in FUN(X[[i]], ...): Number of digits in 'id', does not match the length of 'multiplier'!
Invalid lenght of input to
oin_ctrl()
returns wrong result or throws an error