cor.flex | R Documentation |
Creates correlation matrix from data.frame based on Hmisc::rcorr
cor.flex(
df,
na = "listwise",
type = "pearson",
labs = "numbered",
diag = "bottom",
lang = "hr"
)
df |
data.frame |
na |
how will missing values be handled ("listwise" (default), "pairwise") |
type |
type of correlation ("pearson" (default), "spearman") |
labs |
type of table:
|
diag |
table looks ("bottom" (default), "top", "all") |
lang |
language ("hr" (default), "en") |
list with two elements:
$matrix - flextable object
$N - number of participants (range if na="pairwise")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.