get_ids_s: Retrieve taxonomic identifiers for a given taxon name.

View source: R/get_ids_s.R

get_ids_sR Documentation

Retrieve taxonomic identifiers for a given taxon name.

Description

This is a convenience function to get identifiers across all data sources. You can use other get_* functions to get identifiers from specific sources if you like.

Usage

get_ids_s(names, db = c("worms", "pesi"), ...)

Arguments

names

character; Taxonomic name to query.

db

character; database to query. One or more of worms or pesi. By default db is set to search all data sources.

...

Other arguments passed to get_wormsid, get_pesiid.

Value

A vector of taxonomic identifiers, each retaining their respective S3 classes so that each element can be passed on to another function (see e.g.'s).

Note

There is a timeout of 1/3 seconds between queries to NCBI.

See Also

get_wormsid, get_pesiid

Examples

## Not run: 
# Plug in taxon names directly
## By default you get ids for all data sources
get_ids_s(names="Chironomus riparius")

## Or you can specify which source you want via the db parameter
get_ids_s(names="Salvelinus fontinalis", db = 'worms')

## End(Not run)

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