# NOT RUN {
# Data
data("mx", package = "biosurvey")
variables <- raster::stack(system.file("extdata/variables.tif",
package = "biosurvey"))
# Create master matrix object
m_matrix <- prepare_master_matrix(region = mx, variables = variables,
do_pca = TRUE, center = TRUE, scale = TRUE)
# }
Run the code above in your browser using DataLab