occQuery | R Documentation |
Takes rectified list of specimens from
studyTaxonList
and returns point data from
rgbif
with metadata.
occQuery(
x = NULL,
datasources = c("gbif", "bien"),
GBIFLogin = NULL,
GBIFDownloadDirectory = NULL,
loadLocalGBIFDownload = F,
checkPreviousGBIFDownload = T,
options = NULL
)
x |
An object of class |
datasources |
A vector of occurrence data sources to search. This is currently limited to GBIF and BIEN, but may expand in the future. |
GBIFLogin |
An object of class |
GBIFDownloadDirectory |
An optional argument that specifies the local directory where GBIF downloads will be saved. If this is not specified, the downloads will be saved to your current working directory. |
loadLocalGBIFDownload |
If |
checkPreviousGBIFDownload |
If |
options |
A vector of options to pass to |
If you are querying GBIF, note that 'occQuery()' only returns records from GBIF that have coordinates, aren't flagged as having geospatial issues, and have an occurrence status flagged as "PRESENT".
The object of class occCiteData
supplied by the user
as an argument, with occurrence data search results, as well as metadata
on the occurrence sources queried.
## Not run:
## If you have already created a occCite object, and have not previously
## downloaded GBIF data.
occQuery(
x = myOccCiteObject,
datasources = c("gbif", "bien"),
GBIFLogin = myLogin,
GBIFDownloadDirectory = "./Desktop",
loadLocalGBIFDownload = F
)
## If you don't have an occCite object yet
occQuery(
x = c("Buteo buteo", "Protea cynaroides"),
datasources = c("gbif", "bien"),
GBIFLogin = myLogin,
GBIFDownloadDirectory = "./Desktop",
loadLocalGBIFDownload = F
)
## If you have previously downloaded occurrence data from GBIF
## and saved it in a folder called "GBIFDownloads".
occQuery(
x = c("Buteo buteo", "Protea cynaroides"),
datasources = c("gbif", "bien"),
GBIFLogin = myLogin,
GBIFDownloadDirectory = "./Desktop/GBIFDownloads",
loadLocalGBIFDownload = T
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.