prep_correlation.Rd
Produce a correlation matrix of covariates
prep_correlation(covariates, logger = NULL)
a matrix containing correlation coefficients
covariate_files <- list.files(system.file("extdata", "covariates",
package = "disagapp"), full.names = TRUE)
covariate_list <- lapply(covariate_files, terra::rast)
covariates <- terra::rast(covariate_list)
correlation_matrix <- prep_correlation(covariates = covariates)