classification_s: Retrieve the taxonomic hierarchy for a given taxon ID.

View source: R/classification_s.R

classification_sR Documentation

Retrieve the taxonomic hierarchy for a given taxon ID.

Description

Retrieve the taxonomic hierarchy for a given taxon ID.

Usage

classification_s(...)

## Default S3 method:
classification_s(x, db = NULL, callopts = list(), ...)

## S3 method for class 'wormsid'
classification_s(id, callopts = list(), ...)

Arguments

...

Other arguments passed to get_wormsid

x

character; taxons to query.

db

character; database to query. Only worms for now.

callopts

Curl options passed on to GET

id

character; identifiers, returned by get_wormsid.

Value

A named list of data.frames with the taxonomic classifcation of every supplied taxa.

Note

If IDs are supplied directly (not from the get_* functions) you must specify the type of ID. There is a timeout of 1/3 seconds between querries to NCBI.

See Also

get_wormsid

Examples

## Not run: 
classification_s(x="Salvelinus fontinalis", db = 'worms')
classification_s(get_wormsid("Salvelinus fontinalis"))

## End(Not run)

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