Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 4d2acdee6b
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (22 sloc) 1.066 kb
#' Get individual records for a given occurrence record.
#' @import httr XML plyr
#' @param key numeric key uniquely identifying the occurrence record within the GBIF
#' @param format specifies the format in which the records are to be returned, one of: brief, darwin or kml (character)
#' @param mode specifies whether the response data should (as far as possible) be the raw values originally retrieved from the data resource or processed (normalised) values used within the data portal (character)
#' @param url the base GBIF API url for the function (should be left to default)
#' @details Currently, the function returns the record as a list, hopefully
#' in future will return a data.frame.
#' @examples \dontrun{
#' occurrenceget(key = 13749100)
#' }
#' @export
occurrenceget <- function(key = NULL, format = NULL, mode = NULL,
url = "")
args <- compact(list(key=key, format=format, mode=mode))
temp <- GET(url, query = args)
out <- content(temp, as="text")
tt <- xmlParse(out)
Jump to Line
Something went wrong with that request. Please try again.