taxize (version 0.1.5)

itis_hierarchy: Get hierarchies from TSN values, full, upstream only, or immediate downstream only

Description

Get hierarchies from TSN values, full, upstream only, or immediate downstream only

Usage

itis_hierarchy(tsn = NULL, what = "full", ...)

Arguments

tsn
One or more TSN's (taxonomic serial number)
what
One of full (full hierarchy), up (immediate upstream), or down (immediate downstream)
...
Further arguments passed on to getjurisdictionaloriginfromtsn

Details

Note that itis_downstream gets taxa downstream to a particular rank, whilc this function only gets immediate names downstream.

See Also

itis_downstream

Examples

Run this code
# Get full hierarchy
itis_hierarchy(tsn=180543)

# Get hierarchy upstream
itis_hierarchy(tsn=180543, "up")

# Get hierarchy downstream
itis_hierarchy(tsn=180543, "down")

# Many tsn's
itis_hierarchy(tsn=c(180543,41074,36616))

# Suppress messages
itis_hierarchy(c(180543,41074,36616), verbose=FALSE)

Run the code above in your browser using DataCamp Workspace