taxize (version 0.1.5)

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, iucn = FALSE, images = 0,
    videos = 0, sounds = 0, maps = 0, text = 0,
    subject = "overview", licenses = "all",
    details = FALSE, common_names = FALSE,
    synonyms = FALSE, references = FALSE, vetted = 0,
    cache_ttl = NULL, key = NULL, callopts = list())

Arguments

taxonconceptID
The taxonconceptID (numeric), which is also the page number.
iucn
Include the IUCN Red List status object (Default: False)
images
Limits the number of returned image objects (values 0 - 75)
videos
Limits the number of returned video objects (values 0 - 75)
sounds
Limits the number of returned sound objects (values 0 - 75)
maps
Limits the number of returned map objects (values 0 - 75)
text
Limits the number of returned text objects (values 0 - 75)
subject
'overview' (default) to return the overview text (if exists), a pipe | delimited list of subject names from the list of EOL accepted subjects (e.g. TaxonBiology, FossilHistory), or 'all' to get text in any subject. Always returns an overview text
licenses
A pipe | delimited list of licenses or 'all' (default) to get objects under any license. Licenses abbreviated cc- are all Creative Commons licenses. Visit their site for more information on the various licenses they offer.
details
Include all metadata for data objects. (Default: False)
common_names
Return all common names for the page's taxon (Default: False)
synonyms
Return all synonyms for the page's taxon (Default: False)
references
Return all references for the page's taxon (Default: False)
vetted
If 'vetted' is given a value of '1', then only trusted content will be returned. If 'vetted' is '2', then only trusted and unreviewed content will be returned (untrusted content will not be returned). The default is to return all content. (Default
cache_ttl
The number of seconds you wish to have the response cached.
key
Your EOL API key; loads from .Rprofile, or you can specify the key manually the in the function call.
callopts
Further args passed on to GET.

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')$pageid[1]
out <- eol_pages(taxonconceptID=pageid)$scinames
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