fatcat_convert: Convert between PMIDs and DOIs using the...

Description Usage Arguments Value Examples

View source: R/fatcat_convert.R

Description

Non-vectorized function. Wrap in 'purrr::map_dfr()' to call on multiple ids. May further develop vectorized option with 'purrr::map()' or 'plyr::llply'.

Usage

1
fatcat_convert(id, type, quiet = TRUE)

Arguments

id

PMID (character) or DOI (character or numeric)

type

Character. Either "doi" or "pmid"

quiet

logical. Should success/error info be displayed? Default is TRUE.

Value

One row dataframe with DOI and PMID. If 'id' not found in Fatcat, returns 'id' and NA for other id type.

Examples

1
2
3
4
5
6
fatcat_convert(32786189, "pmid")
purrr::map_dfr(
  c("10.1056/NEJMoa1916623", "10.1038/ncomms11393", "10.5348/D01-2017-21-OA-1"),
  fatcat_convert,
  type = "doi"
)

maia-sh/pubmedparser documentation built on Feb. 18, 2021, 11:44 a.m.