lib_extract_isbn_crossref: Extract ISBN from the result of lib_metadata_crossref.

Description Usage Arguments Author(s) Examples

View source: R/lib_extract_isbn_crossref.R

Description

Extract ISBN from the result of lib_metadata_crossref.

Usage

1
2
3
4
5
6
7
lib_extract_isbn_crossref(
  fromdoi = TRUE,
  doi = NULL,
  cf = NULL,
  par = TRUE,
  ncores = NULL
)

Arguments

fromdoi

Logical. If TRUE, uses the argument doi and the function lib_metadata_crossref to generate ISBN. If FALSE, uses the argument cf to generate ISBN.

doi

Character vector A vector of Digital Object Identifiers.

cf

R Object. Result of lib_metadata_crossref.

par

Logical. If TRUE, use multiple cores.

ncores

Integer. Number of cores to use if par = TRUE. If unspecified, defaults to detectCores() - 1.

Author(s)

Ivan Jacob Agaloos Pesigan

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Single DOI
doi <- "10.1007/978-0-387-98141-3"
cf <- lib_metadata_crossref(
  doi = doi,
  par = FALSE
)
lib_extract_isbn_crossref(
  fromdoi = TRUE,
  doi = doi,
  par = FALSE
)
lib_extract_isbn_crossref(
  fromdoi = FALSE,
  cf = cf,
  par = FALSE
)
# Vector of DOIs
doi <- c(
  "https://doi.org/10.1007/978-0-387-71762-3",
  "10.1007/978-0-387-98141-3"
)
cf <- lib_metadata_crossref(
  doi = doi,
  par = FALSE
)
lib_extract_isbn_crossref(
  fromdoi = TRUE,
  doi = doi,
  par = FALSE
)
lib_extract_isbn_crossref(
  fromdoi = FALSE,
  cf = cf,
  par = FALSE
)

jeksterslabds/jeksterslabRlib documentation built on Jan. 19, 2021, 11:04 a.m.