View source: R/get_gbif_records.R
| get_gbif_records | R Documentation |
Downloads GBIF records of species, removing auxiliary columns and records recorded prior to a specified year, or that have coordinate uncertainty above a specified amount.
get_gbif_records(
taxon,
min_year,
coord_uncertainty,
basis_of_record,
country,
method = c("auto", "search", "download"),
auto_threshold = 10000,
username,
pwd,
email,
retries = 10,
cleanup = TRUE
)
taxon |
Character. Species taxonomic name. |
min_year |
Integer. The minimum year for which records should be
collated. Default is |
coord_uncertainty |
Integer. The maximum allowable documented coordinate
uncertainty (in metres). If specified, this argument will result in removal
of any records that have a documented uncertainty above this limit. Records
with no uncertainty documented will be returned regardless of the value of
|
basis_of_record |
An optional character vector of one or more of: 'FOSSIL_SPECIMEN', 'HUMAN_OBSERVATION', 'LITERATURE', 'LIVING_SPECIMEN', 'MACHINE_OBSERVATION', 'MATERIAL_SAMPLE', 'OBSERVATION', 'PRESERVED_SPECIMEN', or 'UNKNOWN', giving the set of allowable values for the basis of observation. |
country |
An optional 2 letter ISO code defining the country within which occurrences should be contained. See https://www.iso.org/obp/ui/#search for valid ISO codes (see "Alpha-2 code") column. |
method |
Either |
auto_threshold |
Integer. If |
username |
GBIF username, required when method is |
pwd |
GBIF password, required when method is |
email |
Email address, required when |
retries |
If |
cleanup |
Logical. Should temporary files associated with
|
This function is a wrapper of rgbif such that it can be readily
used with the CoordinateCleaner package.
A data.frame of species occurrence records.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.