as.oin: Parse organizational identity numbers

View source: R/oin.R

as.oinR Documentation

Parse organizational identity numbers

Description

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.

Details

The following format is accepted:

  • character: GNNNNN-NNNC

Value

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

References

Lag (1974:174) om identitetsbeteckning for juridiska personer m.fl.

Examples

ex_oin <- c("556000-4615", "232100-0156", "802002-4280", "8020024280", "AA2002-4280")
as.oin(ex_oin)


rOpenGov/sweidnumbr documentation built on Jan. 19, 2024, noon