Skip to contents

Validates ISBN-10 and ISBN-13 formats, including check digit verification. Hyphens and spaces are allowed as separators.

Usage

is_isbn(x)

Arguments

x

(any)
Object to check.

Value

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

Examples

is_isbn("978-0-306-40615-7")
#> [1] TRUE