Description Usage Arguments Value Examples
View source: R/fatcat_convert.R
Non-vectorized function. Wrap in 'purrr::map_dfr()' to call on multiple ids. May further develop vectorized option with 'purrr::map()' or 'plyr::llply'.
1 | fatcat_convert(id, type, quiet = TRUE)
|
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. |
One row dataframe with DOI and PMID. If 'id' not found in Fatcat, returns 'id' and NA for other id type.
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"
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.