load_layers {sdmpredictors} | R Documentation |
Load layers
Description
Method to load rasters from disk or from the internet. By default a RasterStack is returned but this is only possible When all rasters have the same spatial extent and resolution.
Usage
load_layers(layercodes, equalarea=FALSE, rasterstack=TRUE,
datadir=NULL)
Arguments
layercodes |
character vector or dataframe. Layer_codes of the layers to be loaded or dataframe with a "layer_code" column. |
equalarea |
logical. If |
rasterstack |
logical. If |
datadir |
character. Directory where you want to store the data. If
|
Value
RasterStack or list of raster
See Also
list_layers
, layer_stats
,
layers_correlation
Examples
## Not run:
# warning using tempdir() implies that data will be downloaded again in the
# next R session
env <- load_layers("BO_calcite", datadir = tempdir())
## End(Not run)