Learn R Programming

taxize (version 0.0.6)

eol_pages: Search for pages in EOL database using a taxonconceptID.

Description

Search for pages in EOL database using a taxonconceptID.

Usage

eol_pages(taxonconceptID, usekey = FALSE,
    returntype = "data.frame", key = NULL)

Arguments

taxonconceptID
The taxonconceptID (numeric), which is also the page number.
usekey
Use your API key or not (TRUE or FALSE)
returntype
One of "list" of "data.frame" (character)
key
Your EOL API key; loads from .Rprofile, or you can specify the key manually the in the function call.

Value

  • JSON list object, or data.frame.

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
pageid <- eol_search('Pomatomus')$id[1]
out <- eol_pages(taxonconceptID=pageid)
eol_hierarchy(out[out$nameAccordingTo == "NCBI Taxonomy", "identifier"])
eol_hierarchy(out[out$nameAccordingTo == "Integrated Taxonomic Information
   System (ITIS)", "identifier"])

Run the code above in your browser using DataLab