powered by
Load occurrence data from CSV file to perform modelling, ensemble_modelling or stack_modelling.
modelling
ensemble_modelling
stack_modelling
load_occ(path = getwd(), Env, file = NULL, ..., Xcol = "Longitude", Ycol = "Latitude", Spcol = NULL, GeoRes = TRUE, reso = max(res(Env@layers[[1]])), verbose = TRUE, GUI = FALSE)
A data frame containing the occurrence dataset (spatially thinned or not).
character. Path to the directory that contains the occurrence table.
raster stack. Environmental variables in the form of a raster stack used to perform spatial thinning (can be the result of the load_var function).
load_var
character. File containing the occurrence table, if NULL (default) the .csv file located in the path will be loaded.
additional parameters given to read.csv.
read.csv
character. Name of the Latitude or X coordinate variable.
character. Name of the Longitude or Y coordinate variable.
character. Name of the column containing species names or IDs.
logical. If TRUE, performs geographical thinning on occurrences to limit geographical biases in the SDMs.
TRUE
numeric. Resolution used to perform the geographical thinning, default is the resolution of Env.
Env
logical. If TRUE, allows the function to print text in the console.
logical. Parameter reserved for graphical interface.
load_var to load environmental variables.
if (FALSE) { load_occ(path = system.file('extdata', package = 'SSDM'), Env, Xcol = 'LONGITUDE', Ycol = 'LATITUDE', file = 'Occurrences.csv', sep = ',') }
Run the code above in your browser using DataLab