extract: Extract a valid ID Number from a string.

Description Usage Arguments Value

Description

Functions for extracting a valid Business ID, VAT Number, E-Invoicing address or a personal identification code (PIC) if it is contained in the input string. Rules obtained from http://tarkistusmerkit.teppovuori.fi/tarkmerk.htm.

Usage

1
2
3
4
5
6
7
extract_yt(x, require_checksum = TRUE)

extract_ovt(x, require_checksum = TRUE)

extract_vat(x, require_checksum = TRUE)

extract_pic(x, require_checksum = TRUE)

Arguments

x

The input string(s).

require_checksum

If TRUE (default), require that the checksum digit matches in addition to the format of the string. Note, does not make sense when used to validate non-Finnish VAT-numbers.

Value

A character vector containing the only the ID-parts of the string(s).


paasim/fino documentation built on Jan. 2, 2021, 11:32 p.m.