Function to load environmental variables in the form of rasters to perform
modelling
, ensemble_modelling
or
stack_modelling
.
load_var(path = getwd(), files = NULL, format = c(".grd", ".tif",
".asc", ".sdat", ".rst", ".nc", ".envi", ".bil", ".img"),
categorical = NULL, Norm = TRUE, tmp = TRUE, verbose = TRUE,
GUI = FALSE)
A stack containing the environmental rasters (normalized or not).
character. Path to the directory that contains the environmental variables files.
character. Files containing the environmental variables If NULL (default) all files present in the path in the selected format will be loaded.
character. Format of environmental variables files (including .grd, .tif, .asc, .sdat, .rst, .nc, .tif, .envi, .bil, .img).
character. Specify whether an environmental variable is a categorical variable.
logical. If set to true, normalizes environmental variables between 0 and 1.
logical. If set to true, rasters are read in temporary file avoiding to overload the random access memory. But beware: if you close R, temporary files will be deleted.
logical. If set to true, allows the function to print text in the console.
logical. Do not take that argument into account (parameter for the user interface).
load_occ
to load occurrences.
if (FALSE) {
load_var(system.file('extdata', package = 'SSDM'))
}
Run the code above in your browser using DataLab