This function is a wrapper to get records from GBIF using rgbif
and return a
data.frame
ready to be used in caretSDM.
Arguments
- s
character
vector of species names.- file
character
with file to save the output. If not informed, data will not be saved on folder.- as_df
Should the output be a
dataframe
? Default isFALSE
, returning aoccurrences
object.- ...
Arguments to pass on
rgbif::occ_data()
.
Examples
# \donttest{
# Select species names:
s <- c("Araucaria angustifolia", "Salminus brasiliensis")
# Run function:
oc <- GBIF_data(s)
# }