Lists every pair of numeric features whose absolute correlation is at least `cutoff`, with optional labels and an executive caption ("X of the Y features (Z correlated"). Where [drop_correlated_columns()] says which columns to remove, this table is for the reader of the report.
Arguments
- data
A data frame.
- features
Numeric columns to check; `NULL` uses all numeric columns.
- cutoff
Absolute correlation threshold in (0, 1]; a pair at exactly the cutoff counts.
- method
`"pearson"` or `"spearman"` (pairwise complete observations). Pairs with an undefined correlation (a constant column, fewer than 3 shared rows) are not listed.
- metadata
Optional data frame with columns `columns` (feature names) and `labels`. Features without a label keep their name.
- format
`"kable"` (needs `knitr`), `"gt"` (needs `gt`) or `"tibble"`.
- caption
Build the caption (shown as the table caption for `"kable"` and `"gt"`, and always returned as the `caption` attribute of the tibble form).
- digits
Decimals of the correlation in the formatted tables.
