load_var {SSDM}R Documentation

Load environmental variables

Description

Function to load environmental variables in the form of rasters to perform modelling, ensemble_modelling or stack_modelling.

Usage

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
)

Arguments

path

character. Path to the directory that contains the environmental variables files.

files

character. Files containing the environmental variables If NULL (default) all files present in the path in the selected format will be loaded.

format

character. Format of environmental variables files (including .grd, .tif, .asc, .sdat, .rst, .nc, .tif, .envi, .bil, .img).

categorical

character. Specify environmental variables that are categorical.

Norm

logical. Default FALSE. If set to TRUE, normalizes environmental variables into a range between 0 and 1.

tmp

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.

verbose

logical. If set to TRUE, allows the function to print text in the console.

GUI

logical. Do not take that argument into account (parameter for the user interface).

Value

A stack containing the environmental rasters (normalized or not).

See Also

load_occ to load occurrences.

Examples

## Not run: 
load_var(system.file('extdata',  package = 'SSDM'))

## End(Not run)


[Package SSDM version 0.2.9 Index]