Is it an ISBN (10 or 13)?
Value
Logical vector; TRUE for a valid ISBN-10 or ISBN-13 (dashes/spaces
ignored) whose check digit is correct.
See also
Other research-id detectors:
is_doi(),
is_issn(),
is_npi(),
is_orcid()
Examples
is_isbn(c("140955525-9", "978-3-16-148410-0", "140955525-8", NA))
#> [1] TRUE TRUE FALSE NA