layers_correlation {sdmpredictors} | R Documentation |
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())
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. |
Value
A dataframe with the Pearson product-moment correlation coefficients.
See Also
list_layers layer_stats
correlation_groups plot_correlation
Examples
# 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"))
[Package sdmpredictors version 0.2.15 Index]