Pairwise correlation matrix with p-values
Usage
correlation_matrix(data, method = "pearson")
Arguments
- data
Data frame; numeric columns are used.
- method
One of "pearson", "spearman", "kendall".
Value
List with components r (correlations) and p
(p-values), both data.frame objects with matching dimensions.