Learn R Programming

taxize (version 0.0.5)

classification: Get taxonomic hierarchy for a given taxon ID.

Description

Get taxonomic hierarchy for a given taxon ID.

Usage

classification(x, ID = NULL, ...)

## S3 method for class 'tsn': classification(x, ...)

## S3 method for class 'uid': classification(x, ...)

Arguments

x
IDs from get_tsn() or get_uid().
ID
type of identifier, either 'uid' or 'tsn'
...
Currently not used

Value

  • Classification of taxons in a list of data.frames.

Examples

Run this code
classification(get_uid(c("Chironomus riparius", "aaa vva")))
classification(get_tsn(c("Chironomus riparius", "aaa vva"), "sciname"))

# must specify Identifier, when not used with get_*()
classification(315576, ID = "uid")
classification(180544, "tsn")

Run the code above in your browser using DataLab