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

Description Usage Arguments Value Examples

View source: R/as.orcid.R

Description

Convert an ORCID or something like an ORCID object

Usage

1

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
## 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)

## End(Not run)

rorcid documentation built on Jan. 21, 2021, 1:06 a.m.