Learn R Programming

sweidnumbr (version 1.5.0)

as.oin: Parse organizational identity numbers

Description

Check and convert a vector of organizational identity numbers.

Usage

as.oin(oin)

Value

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

Arguments

oin

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

Details

The following format is accepted:

  • character: GNNNNN-NNNC

References

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

Examples

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

Run the code above in your browser using DataLab