Skip to contents

Validates CUSIP format including Luhn-variant check digit verification.

Usage

is_cusip(x)

Arguments

x

(any)
Object to check.

Value

TRUE if x is a valid CUSIP string, FALSE otherwise.

Examples

is_cusip("037833100")
#> [1] TRUE