normalize_isbn("012491540x") # "012491540X"
normalize_isbn("012491540x", convert.to.isbn.13=TRUE)
"9780124915404"
# vectorized
normalize_isbn(c("513213012491540x245",
"978966819^*!X7918",
NA,
"97815724115799781572411579"))
# "012491540X", "9789668197918", NA, "9781572411579"
Run the code above in your browser using DataLab