load_var: Load environmental variables

Description Usage Arguments Value See Also Examples

Description

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

Usage

1
2
3
4
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, nraster = 1, folder_tmp = NULL)

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 whether an environmental variable is a categorical variable.

Norm

logical. If set to true, normalizes environmental variables 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.

nraster

integer. dividir raster nraster*nraster.

folder_tmp

character. folder temporal.

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

1
2
3
4
## Not run: 
load_var(system.file('extdata',  package = 'OSSDM'))

## End(Not run)

hugocalcad/LigthSSDM documentation built on June 22, 2019, 12:43 a.m.