gbifOccDownload | R Documentation |
Function to query the occurrence download API of GBIF and retrieve matching records.
gbifOccDownload(
user,
pwd,
email,
curlopts = list(),
body = NULL,
pingtime = 5,
tmploc = tempdir(),
assf = TRUE,
...
)
user |
A character string containing a valid username associated with a
GBIF account. If |
pwd |
A character string containing a valid password associated with a
GBIF account. If |
email |
A character string containing a valid email associated with a
GBIF account. If |
curlopts |
List of named curl options passed on to
|
body |
A character scalar containing a syntactically valid JSON query
to pass to the GBIF occurrence download API. If this is |
pingtime |
An integer scalar giving the number of seconds to wait between pings to GBIF's servers to query the status of the data download. |
tmploc |
A character scalar providing the location to store temporary files created in the download (that are then deleted on completion). |
assf |
A logical scalar that if |
... |
If |
An object of type gbifOcc
that inherits from an sf
object if assf
is TRUE
but otherwise directly inherits from
a data.frame
. In addition the object will have the following
attributes:
DOI
A character scalar giving the DOI allocated to the data download.
citation
A character scalar giving the citation to use when referring to the dataset in published literature.
query
A jsonlite
object containing the full query used
to generate the download.
dataset
A data frame containing information on the constituent datasets used in the occurrence download.
Joseph D. Chipperfield, joechip90@googlemail.com
name_lookup
, taxonLookup
,
jsonOccFormulation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.