valid: Check if the string is a valid ID Number

Description Usage Arguments Value

Description

Functions for inferring if the input string is a valid Business ID, VAT Number, E-Invoicing address or a personal identification code (PIC). Rules obtained from http://tarkistusmerkit.teppovuori.fi/tarkmerk.htm. Removes all characters that can not occur in a valid string, such commas, dots and white space.

Usage

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

valid_ovt(x, require_checksum = TRUE)

valid_vat(x, require_checksum = TRUE)

valid_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 logical vector that can be interpreted as follows:

NA

The string has a correct format but an incorrect checksum-digit.

FALSE

Ths string has an incorrect format.

TRUE

The string appears to be of correct format.


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