Learn R Programming

taxize (version 0.9.4)

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, taxonomy = TRUE, usekey = TRUE, key = NULL, ...)

Arguments

id

(character) The EOL data object identifier

taxonomy

(logical) Whether to return any taxonomy details from different taxon hierarchy providers, in an array named taxonconcepts

usekey

(logical) use your API key or not (TRUE or FALSE)

key

(character) Your EOL API key; ; see taxize-authentication for help on authentication

...

Curl options passed on to HttpClient

Value

A list, optionally with a data.frame if taxonomy=TRUE

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
# NOT RUN {
eol_dataobjects(id = "d72801627bf4adf1a38d9c5f10cc767f")
eol_dataobjects(id = "21929584")

# curl options
eol_dataobjects(id = "21929584", verbose = TRUE)
# }

Run the code above in your browser using DataLab