Calculate and return a matrix of pairwise correlation coefficients. Returns
significance levels if method == "pearson"
pwcorr(df, vars = NULL, method = "pearson", var_label_df = NULL)A data.frame displaying the pairwise correlation coefficients
between all variables in vars.
A data.frame or tibble.
A character vector of numeric variables to generate pairwise
correlations for. If the default (NULL), all variables are included.
One of "pearson", "kendall", or "spearman"
passed on to "cor".
A data.frame or tibble with columns "variable" and
"label" that contains display labels for each variable specified in
vars.