Skip to contents

Check and convert a vector of organizational identity numbers.

Usage

as.oin(oin)

Arguments

oin

Vector with swedish organizational identity numbers in character format. See details.

Value

Character vector (of class oin and AsIs) with swedish organizational identity numbers.

Details

The following format is accepted:

  • character: GNNNNN-NNNC

Examples

ex_oin <- c("556000-4615", "232100-0156", "802002-4280", "8020024280", "AA2002-4280")
as.oin(ex_oin)
#> Warning: Erroneous oin(s) (set to NA).
#> [1] "556000-4615" "232100-0156" "802002-4280" "802002-4280" NA           
#> Organizational identity number(s)