load_covariates {mbg} | R Documentation |
Load covariates
Description
Load covariates
Usage
load_covariates(
directory,
covariates_table,
id_raster,
year = NULL,
file_format = "tif",
add_intercept = FALSE,
check_previous_years = 10
)
Arguments
directory |
Directory containing all covariate sub-directories |
covariates_table |
|
id_raster |
terra::SpatRaster with non-NA pixels delineating the extent of the study area |
year |
( |
file_format |
( |
add_intercept |
( |
check_previous_years |
( |
Details
Load a list of covariates from a specified directory structure
Value
A named list of formatted covariates. Each list item is a terra::SpatRaster
with one layer and the same dimensions as the id_raster