is_valid_isin: Validate a vector of ISINs

View source: R/is_valid_isin.R

is_valid_isinR Documentation

Validate a vector of ISINs

Description

This function validates that a vector of ISINs are valid codes that conform to the ISO 6166 specification with TRUE or FALSE. It checks the basic structure (2 alpha characters, 9 alpha-numeric characters, 1 check digit) and also validates the check digit using the Luhn algorithm.

Usage

is_valid_isin(isins)

Arguments

isins

A character vector

Value

A logical vector the same length as isins.


2DegreesInvesting/PACTA_analysis documentation built on April 19, 2023, 6:42 p.m.