Learn R Programming

ohvbd (version 1.0.0)

fetch_gbif: Fetch GBIF dataset/s by ID

Description

Retrieve GBIF dataset/s specified by their dataset ID.

Usage

fetch_gbif(ids, filepath = ".")

Value

A list of rgbif occ_download_get objects, as an ohvbd.responses object.

Arguments

ids

a string or character vector of ids (preferably in an ohvbd.ids object) indicating the particular dataset/s to download.

filepath

directory to save gbif download files into.

Author

Francis Windram

Examples

Run this code
if (FALSE) { # interactive()
fetch_gbif("dbc4a3ae-680f-44e6-ab25-c70e27b38dbc")

ohvbd.ids("dbc4a3ae-680f-44e6-ab25-c70e27b38dbc", "gbif") |>
  fetch() # Calls fetch_gbif()
}

Run the code above in your browser using DataLab