Learn R Programming

rcrossref (version 0.5.0)

id_converter: Get a PMID from a DOI, and vice versa.

Description

Get a PMID from a DOI, and vice versa.

Usage

id_converter(x, type = "doi", ...)

Arguments

x
(character) One doi, pmid, or pmcid
type
(character) one of doi, pmid, or pmcid
...
Curl args passed on to GET.

References

Uses the http://www.ncbi.nlm.nih.gov/pmc/tools/id-converter-api/

Examples

Run this code
# get a pmid/pmcid from a doi
id_converter("10.1038/ng.590")

# pmid to doi/pmcid
id_converter("20495566", "pmid")

# pmcid to doi/pmid
id_converter("PMC2883744", "pmcid")

# error, wrong type passed for id given
# id_converter("PMC2883744", "doi")

Run the code above in your browser using DataLab