Wrapper for terra::mean(). Calculates mean of list of rasters for habitat connectivity.
Arguments
- indices
List of SpatRasters indicating the habitat connectivity of a region. This input represents the spatial raster collection for which mean is to be calculated.
- global
Logical. Select
TRUEif a global analysis is desired,FALSEotherwise.eastandwestare required whenTRUE.- east
SpatRaster. Collection of risk indices on eastern extent.
- west
SpatRaster. Collection of risk indices on western extent. When
TRUE,geoscaleis ignored. Default isTRUE.- geoscale
Vector. This refers to the geographical extent for the habitat connectivity analysis when
globalis set toFALSE. Default isNULL.- res
Numeric. This parameter refers to the spatial aggregation factor. This value is the number of cells that are grouped when aggregating a raster layer from fine to coarse spatial resolution to reduce computational costs. Setting this parameter to 1 would not aggregate the raster layers. Default is
reso().- plt
TRUEif need to plot mean map,FALSEotherwise.- outdir
Character. Output directory for saving raster in TIFF format. Default is
tempdir().
