Is it an NPI (US health provider)?
Value
Logical vector; TRUE for a 10-digit NPI whose Luhn check digit
(over the 80840 prefix + first 9 digits) is valid.
Examples
is_npi(c("1225155880", "1234567890", NA))
#> [1] TRUE FALSE NA
Is it an NPI (US health provider)?
Logical vector; TRUE for a 10-digit NPI whose Luhn check digit
(over the 80840 prefix + first 9 digits) is valid.
is_npi(c("1225155880", "1234567890", NA))
#> [1] TRUE FALSE NA