Learn R Programming

rorcid (version 0.7.0)

as.orcid: Convert an ORCID or something like an ORCID object

Description

Convert an ORCID or something like an ORCID object

Usage

as.orcid(x, ...)

Arguments

x

An ORCID id, passed to print

...

Further args passed on to orcid_id()

Value

an S3 object of class or_cid, which pretty prints for brevity

Examples

Run this code
# NOT RUN {
as.orcid(x="0000-0002-1642-628X")
out <- orcid("text:English", rows = 20)
as.orcid(out$`orcid-identifier.path`[1])

# Passon further args to orcid_id()
as.orcid("0000-0002-1642-628X", verbose = TRUE)

# Browse to a profile
# browse(as.orcid("0000-0002-1642-628X"))

# many ORCIDs as a character vector
ids <- c("0000-0002-1642-628X", "0000-0002-9341-7985")
as.orcid(ids)

# many in a list via orcid_id()
(x <- lapply(ids, orcid_id))
as.orcid(x)
# }

Run the code above in your browser using DataLab