isCusip | R Documentation |
This function check validity of CUSIP code by comparing calculated checksum digit based on first 8 characters of CUSIP code with 9th character of CUSIP code - checksum digit
isCusip(s)
s |
nine-character string with CUSIP code to validate |
Logical value indicating validity of CUSIP number: TRUE
if CUSIP number is valid, FALSE
if CUSIP number is invalid
library(SEC13Flist)
isCusip("B38564109") #invalid CUSIP example
isCusip("B38564108") #valid CUSIP example
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.