Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


sdmpredictors (version 0.2.15)

layers_correlation: Gives the Pearson correlation between layers

Description

layers_correlations returns the Pearson product-moment correlation coefficient (Pearson's r) for every combination of the give layercodes. The correlation between a terrestrial and a marine layer has been set to NA.

Usage

layers_correlation(layercodes = c())

Value

A dataframe with the Pearson product-moment correlation coefficients.

Arguments

layercodes

character vector or dataframe. Codes of the layers, you want the correlation matrix of, as a character vector or a dataframe with a "layer_code" column. With the default empty vector the correlation between all layers is returned.

See Also

list_layers layer_stats correlation_groups plot_correlation

Examples

Run this code
# correlation of the first 10 layers
layers_correlation()[1:10,1:10]
layers_correlation(c("BO_calcite", "MS_bathy_5m"))
layers_correlation(c("BO_calcite", "MS_bathy_5m"))

Run the code above in your browser using DataLab