taxize (version 0.1.5)

eol_hierarchy: Retrieve the taxonomic hierarchy from given EOL taxonID.

Description

Retrieve the taxonomic hierarchy from given EOL taxonID.

Usage

eol_hierarchy(taxonid, common_names = NULL,
    synonyms = NULL, key = NULL, callopts = list())

Arguments

taxonid
the EOL page identifier (character)
common_names
Return common names or not (defaults to returning them, give commonnames=0 if not)
synonyms
Return synonyms or not (defaults to returning them, give synonyms=0 if not)
key
Your EOL API key; loads from .Rprofile.
callopts
Further args passed on to GET.

Value

  • List or dataframe of results.

Details

It's possible to return JSON or XML with the EOL API. However, this function only returns JSON for now.

Examples

Run this code
# Using get_eolid
eol_hierarchy(get_eolid(sciname='Poa annua'))

Run the code above in your browser using DataLab