Summarises the properties of a list of SpatRasters

prep_summary(covs, remove = FALSE, logger = NULL)

Arguments

covs

list. List of SpatRasters

remove

logical. Whether to remove columns where all values are equal

logger

Stores all notification messages to be displayed in the Log Window. Insert the logger reactive list here for running in shiny, otherwise leave the default NULL

Value

a dataframe containing columns for the resolution, origin, min and max coordinates, coordinate reference system and number of cells.

Author

Simon Smart simon.smart@cantab.net

Examples

covariate_files <- list.files(system.file("extdata", "covariates",
                              package = "disagapp"), full.names = TRUE)
covariate_list <- lapply(covariate_files, terra::rast)
covariate_summary <- prep_summary(covs = covariate_list)