View source: R/S4-Correlation.R
melt_rcorr | R Documentation |
rcorr
Melts object of class rcorr
to a data.frame.
melt_rcorr(rcorr_obj, type = "complete", diagonal = TRUE, distinct = FALSE)
rcorr_obj |
An object of class |
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. |
A data.frame with the following columns:
var1: Factor. First variable of the correlated variable pair.
var2: Factor. Second variable of the correlated variable pair.,
corr: Numeric. The correlation vaule.,
pval: Numeric. The corresponding p-value.,
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.