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 = FALSE,
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 environmental variables that are categorical.
logical. Default FALSE. If set to TRUE, normalizes environmental variables into a range 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