Learn R Programming

taxize (version 0.0.5)

eol_dataobjects: Given the identifier for a data object, return all metadata about the object.

Description

Given the identifier for a data object, return all metadata about the object.

Usage

eol_dataobjects(id, returntype = "data.frame",
    url = "http://www.eol.org/api/data_objects/1.0/",
    usekey = TRUE, key = NULL)

Arguments

id
The EOL data object identifier (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

  • List or dataframe.

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_dataobjects(id="d72801627bf4adf1a38d9c5f10cc767f")
eol_dataobjects(id="21929584")

Run the code above in your browser using DataLab