Learn R Programming

libbib (version 1.6.4)

worldcat_permalink_from_isbn: Get WorldCat catalog permalinks from ISBNs

Description

Takes a string representation of ISBNs. Returns permalinks to the WorldCat catalog entries using those ISBNs.

Usage

worldcat_permalink_from_isbn(x, normalize = TRUE)

Value

Worldcat permalinks using ISBNs.

Arguments

x

A string (or vector of strings) of ISBNs

normalize

a logical indicating whether the ISBNs should be normalized prior to creating the permalink (default is TRUE)

Details

If normalize=TRUE and the ISBN is invalid, the permalink is NA. If normalize=FALSE, the permalink may be invalid. No validity check on the URL is performed

Examples

Run this code

worldcat_permalink_from_isbn("1788393724")
# http://www.worldcat.org/isbn/1788393724

worldcat_permalink_from_isbn("0-124-91540-X")
# http://www.worldcat.org/isbn/012491540X

worldcat_permalink_from_isbn("0-124-91540-X", normalize=FALSE)
# http://www.worldcat.org/isbn/0-124-91540-X

# vectorized
worldcat_permalink_from_isbn(c("1788393724", NA, "0-124-91540-X"))

Run the code above in your browser using DataLab