Learn R Programming

orcidtr (version 0.1.0)

orcid_doi: Search ORCID by DOI

Description

Search for ORCID profiles associated with specific DOIs. This is a convenience wrapper around orcid for DOI-based searches.

Usage

orcid_doi(dois, fuzzy = FALSE, rows = 10, token = NULL)

Value

A named list where each element corresponds to a DOI and contains a data.table of search results. If only one DOI is provided, returns the data.table directly. Empty data.tables are returned for DOIs with no matches.

Arguments

dois

Character vector. One or more DOIs to search for.

fuzzy

Logical. Use fuzzy matching for DOI search (default: FALSE). Fuzzy matching allows partial DOI matches.

rows

Integer. Number of results per DOI (default: 10).

token

Character string or NULL. Optional API token.

Details

This function searches the digital-object-ids field in the ORCID registry. When fuzzy = TRUE, wildcard matching is used to find partial DOI matches.

See Also

orcid, orcid_search

Examples

Run this code
if (FALSE) {
# Search by single DOI
results <- orcid_doi("10.1371/journal.pone.0025995")
print(results)

# Search by multiple DOIs
dois <- c("10.1038/nature12373", "10.1126/science.1260419")
results <- orcid_doi(dois)
names(results)

# Fuzzy search (partial DOI)
results <- orcid_doi("10.1371/*", fuzzy = TRUE, rows = 20)
}

Run the code above in your browser using DataLab