Learn R Programming

rorcid (version 0.3.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()
# library("httr")
# as.orcid("0000-0002-1642-628X", config=verbose())
# 
# # 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 <- orcid_id(orcid = ids))
# as.orcid(x)
# ## End(Not run)

Run the code above in your browser using DataLab