powered by
This function is a wrapper to get records from GBIF using rgbif and return a data.frame ready to be used in caretSDM.
rgbif
data.frame
GBIF_data(s, file = NULL, as_df = FALSE, ...)
A data.frame with species occurrences data, or an occurrences object if as_df = FALSE.
occurrences
as_df = FALSE
character vector of species names.
character
character with file to save the output. If not informed, data will not be saved on folder.
Should the output be a dataframe? Default is FALSE, returning a occurrences object.
dataframe
FALSE
Arguments to pass on rgbif::occ_data().
rgbif::occ_data()
Luíz Fernando Esser (luizesser@gmail.com) https://luizfesser.wordpress.com
https://www.gbif.org
# \donttest{ # Select species names: s <- c("Araucaria angustifolia", "Salminus brasiliensis") # Run function: oc <- GBIF_data(s) # }
Run the code above in your browser using DataLab