
Last chance! 50% off unlimited learning
Sale ends in
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
.
layers_correlation(layercodes = c())
A dataframe with the Pearson product-moment correlation coefficients.
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.
list_layers layer_stats
correlation_groups plot_correlation
# 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