Allows for: setting a window (using the aoi); and recoding categorical raster(s) to no more than cat_pred_levels.

make_env_stack(
  predictors,
  is_env_pred = TRUE,
  aoi = NULL,
  cat_pred_levels = NULL
)

Arguments

predictors

Character. Paths to rasters.

is_env_pred

Logical. Does the naming follow that described by envRaster::name_env_tif()

aoi

sf. Used in terra::window()

cat_pred_levels

Named list. Usually prep$cat_pred_levels() resulting from envSDM::prep_sdm()

Value

spatRaster