Description Usage Arguments Details Value Examples
View source: R/convert_dois_to_pmids.R
The [NLM ID Converter](https://www.ncbi.nlm.nih.gov/pmc/pmctopmid/#converter) is restricted to records in the PMC corpus, as are tools built on its [API](https://www.ncbi.nlm.nih.gov/pmc/tools/id-converter-api/) such as [rcrossref::id_converter](https://docs.ropensci.org/rcrossref/reference/id_converter.html).
1 | convert_dois_to_pmids(dois, batch_size = 100)
|
dois |
Character vector of DOIs. |
batch_size |
Max number of PMIDs to be fetched. Default = 100. |
This function returns all PMIDs found for a given list of DOIs. It does **not** return the matching DOI. In order to maintain the PMID-DOI link, convert the output of this function back into a PMID using convert_pmid_to_doi
.
Numeric vector of PMIDs
1 2 3 4 5 6 7 | my_dois <- c("10.3389/fpsyt.2018.00207", "10.1186/s40779-018-0166-5", "10.1186/s12959-018-0173-5", "10.1103/PhysRevD.97.096016", "10.1038/d41586-018-05113-0")
# Returns all available PMIDs (3 PMIDs)
convert_dois_to_pmids(my_dois)
# Returns number of PMIDs within \code{batch_size} (2 PMIDs)
convert_dois_to_pmids(my_dois, batch_size = 3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.