Learn R Programming

rgbif (version 0.4.0)

occ_get: Get data for specific GBIF occurrences.

Description

Get data for specific GBIF occurrences.

Usage

occ_get(key = NULL, return = "all", verbatim = FALSE,
    minimal = TRUE, callopts = list())

Arguments

key
Occurrence key
return
One of data, hier, meta, or all. If data, a data.frame with the data. hier returns the classifications in a list for each record. meta returns the metadata for the entire call. all gives all data back in a list.
verbatim
Return verbatim object (TRUE) or cleaned up object (FALSE, default).
minimal
Return just taxon name, latitude, and longitute if TRUE, otherwise all data. Default is TRUE.
callopts
Further arguments passed on to the GET request.

Value

  • A data.frame or list.

References

http://www.gbif.org/developer/summary

Examples

Run this code
occ_get(key=773433533, return='data')
occ_get(key=773433533, 'hier')
occ_get(key=773433533, 'all')

# many occurrences
occ_get(key=c(773433533,101010,240713150,855998194,49819470), return='data')

# Verbatim data
occ_get(key=c(773433533,766766824,620594291,766420684), verbatim=TRUE)

Run the code above in your browser using DataLab