worms_extid: Get external ID from Worms ID

View source: R/worms_extid.R

worms_extidR Documentation

Get external ID from Worms ID

Description

Get external ID from Worms ID

Usage

worms_extid(ids = NULL, type = "ncbi", opts = NULL, iface = NULL, ...)

Arguments

ids

(numeric) One or more WoRMS AphidID's for a taxon.

type

External ID source to get ID for. One of ncbi (default), tsn, bold, eol, dyntaxa, fishbase, iucn or lsid.

opts

(character) a named list of elements that are passed to the curlPerform function which actually invokes the SOAP method. These options control aspects of the HTTP request, including debugging information that is displayed on the console, e.g. .opts = list(verbose = TRUE)

iface

Interface to WoRMS SOAP API methods. By default we use a previously created object. If you want to create a new one, use worms_gen_iface, assign the output to an object, then pass it into any worms_* function. in the iface parameter.

...

Further args passed on to SSOAP::.SOAP.

Value

Character class with ID and attributess for found or not, the source name, and a URL for the taxon with the external source. No URL is given for lsid.

Examples

## Not run: 
worms_extid(ids=1080, type='ncbi')
worms_extid(ids=278241, type='tsn')
worms_extid(ids=278241, type='iucn')
worms_extid(ids=282981, type='fishbase')
worms_extid(ids=127186, type='bold')
worms_extid(ids=278241, type='eol')
worms_extid(ids=278241, type='lsid')
worms_extid(ids=127186, type='dyntaxa')

## End(Not run)

ropensci/taxizesoap documentation built on May 18, 2022, 7:33 p.m.