powered by
Takes a raster stack and returns a data frame containing Pearson correlation coefficients between the included rasters
raster.cor.matrix(env, method = "pearson")
A data frame of correlation coefficients for a set of rasters.
A SpatRaster object containing two or more rasters
Type of correlation to measure. Can do "pearson", "kendall", or "spearman"
# \donttest{ data(euro.worldclim) raster.cor.matrix(euro.worldclim) # }
Run the code above in your browser using DataLab