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

Description Usage Arguments Details Value Examples

Description

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

Usage

1
2
eol_dataobjects(id, taxonomy = TRUE, usekey = TRUE, key = NULL,
  verbose = TRUE, ...)

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; can load from .Rprofile if not passed as a parameter

verbose

(logical); If TRUE the actual taxon queried is printed on the console.

...

Curl options passed on to GET

Details

It's possible to return JSON or XML with the EOL API. However, this function only returns JSON for now.

Value

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

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
eol_dataobjects(id = "d72801627bf4adf1a38d9c5f10cc767f")
eol_dataobjects(id = "21929584")

# curl options
library("httr")
eol_dataobjects(id = "21929584", config = verbose())

## End(Not run)


Search within the taxize package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.