Raster correlation


I am beginer in R, I have two layers of raster and i want to make a raster to raster correlation and need the result in Raster. Any help in this regards is highly appreciated.

Thanks in advance.

Hi, are these spatial rasters?

Spatial correlation between rasters · StatnMap


yes, they are.

Did you work out what you were after?

facing problem with SDM and GDAL installation ,package ‘SDMSelect’ is not available for this version of R

its not on cran, so normal install.packages won't work.
There is an install guide on the website for it
statnmap/SDMSelect: Cross-validation model selection and species distribution mapping (github.com)