oin_ctrl: Check the control numbers for 'oin'

Description Usage Arguments Value References Examples

Description

Calculates the control number using the Luhn algorithm and compare it with the control number in the organization identity number (oin).

Usage

1
oin_ctrl(oin, force_logical = FALSE)

Arguments

oin

A vector of class oin. See as.oin.

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

1
2
ex_oin <- c("556000-4615", "232100-0156", "802002-4280", "232100-0157", "802002-4281")
oin_ctrl(ex_oin)


Search within the sweidnumbr package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.