raster.cor.matrix: Takes a raster stack and returns a data frame containing...

View source: R/raster.cor.matrix.R

raster.cor.matrixR Documentation

Takes a raster stack and returns a data frame containing Pearson correlation coefficients between the included rasters

Description

Takes a raster stack and returns a data frame containing Pearson correlation coefficients between the included rasters

Usage

raster.cor.matrix(env, method = "pearson")

Arguments

env

A SpatRaster object containing two or more rasters

method

Type of correlation to measure. Can do "pearson", "kendall", or "spearman"

Value

A data frame of correlation coefficients for a set of rasters.

Examples


data(euro.worldclim)
raster.cor.matrix(euro.worldclim)


danlwarren/ENMTools documentation built on Jan. 17, 2025, 8:42 a.m.