Learn R Programming

taxize (version 0.0.5)

eol_search: Search for terms in EOL database.

Description

Search for terms in EOL database.

Usage

eol_search(terms, usekey = TRUE,
    returntype = "data.frame",
    url = "http://eol.org/api/search/", key = NULL)

Arguments

terms
search terms (character)
usekey
use your API key or not (TRUE or FALSE)
returntype
one of "list" of "data.frame" (character)
url
The EOL url for the function (should be left to default).
key
Your EOL API key; loads from .Rprofile.

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
eol_search('Homo')
eol_search('Salix')
eol_search(terms='Ursus americanus luteolus')

Run the code above in your browser using DataLab