View source: R/S4-Correlation.R
corr_mtr_to_df | R Documentation |
Converts a correlation matrix to a tidy data.frame in which observations are correlation pairs.
corr_mtr_to_df(mtr, type = "complete", diagonal = TRUE, distinct = FALSE)
mtr |
A correlation matrix. |
type |
Character value. Denotes how the underlying correlation matrix is handled. Three options:
|
diagonal |
Logical value. Indicates if the diagonal values of the
matrices are kept ( = TRUE) or set to NA (= FALSE). Ignored if |
distinct |
Logical value. If TRUE only one observation per variable pair remains in the output data.frame. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.