Learn R Programming

rorcid (version 0.3.0)

identifiers: Get identifiers

Description

This function aims to pluck out just identifiers into a vector for easy use downstream (e.g., use DOIs to fetch article metadata). You can still manually fetch additional data from outputs of functions in this package.

Usage

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

Arguments

x
An object of class works, orcid, orcid_id, orcid_doi, or a list that contains any number of the previous objects.
type
(character) One of doi (default), pmid, pmc, eid, other_id, orcid, scopus, researcherid. The orcid's here are for works, not individuals.
...
Ignored.

Value

A vector of identifiers, or NULL if none found

Examples

Run this code
## Not run: 
# # Result of call to works()
# x <- works(orcid_id("0000-0001-8607-8025"))
# # doi by default
# identifiers(x)
# # orcids
# identifiers(x, "orcid")
# # pmid
# identifiers(x, "pmid")
# # pmc 
# identifiers(x, "pmc") 
# # other_id
# identifiers(x, "other_id")
# 
# # Result of call to orcid_id()
# x <- orcid_id(orcid = "0000-0002-9341-7985")
# identifiers(x, "doi")
# identifiers(x, "eid")
# 
# # Result of call to orcid()
# x <- orcid(query="carl+boettiger")
# identifiers(x, "scopus")
# identifiers(x, "orcid")
# identifiers(x, "researcherid")
# 
# # Result of call to orcid_doi()
# x <- orcid_doi(dois="10.1087/20120404", fuzzy=TRUE)
# identifiers(x, "scopus")
# ## End(Not run)

Run the code above in your browser using DataLab