oin_ctrl {sweidnumbr} | R Documentation |
Check the control numbers for oin
Description
Calculates the control number using the Luhn algorithm and compare it with the control number in the organization identity number (oin).
Usage
oin_ctrl(oin, force_logical = FALSE)
Arguments
oin |
A vector of class |
force_logical |
If TRUE, force all NA in oin to be FALSE. Default is FALSE. |
Value
Logical vector indicating if a oin is correct (TRUE
) or not (FALSE
)
References
Organisationsnummer Skatteverket
Examples
ex_oin <- c("556000-4615", "232100-0156", "802002-4280", "232100-0157", "802002-4281")
oin_ctrl(ex_oin)
[Package sweidnumbr version 1.5.0 Index]