Skip to contents

Retrieve Open Tree of Life IDs for a set of identifiers from four common databases: eol, gbid, ncbi, and iucn. This is currently experimental and does not attempt to do formatting or processing of the JSON output past parsing it into a list. Do not use for mission-critical functionality unless you really need to.

Usage

identifier2ott(
  eol = NA,
  gbif = NA,
  ncbi = NA,
  iucn = NA,
  rate = 5,
  basereq = NA
)

Arguments

eol

a numeric ID or numeric vector of eol ids indicating the particular taxa to evaluate.

gbif

a numeric ID or numeric vector of gbif ids indicating the particular taxa to evaluate.

ncbi

a numeric ID or numeric vector of ncbi ids indicating the particular taxa to evaluate.

iucn

a numeric ID or numeric vector of iucn ids indicating the particular taxa to evaluate.

rate

maximum number of calls to the API per second.

basereq

an httr2 request object, as generated by oz_basereq(). If NA, uses the default request.

Value

A list of maps between the given ids and their OTT counterparts

Author

Francis Windram

Examples

if (FALSE) { # \dontrun{
identifier2ott(eol = c(1228387, 7674), gbif = c(1651891), ncbi = c(389061), iucn = (7377))
} # }