Description Usage Arguments Value Examples
View source: R/zero_order_corr.r
This function creates a zero-order correlation table. A vector with variables names can be included in order to replace the first column. Further arguments allow to transform the table into a APA-ready print format.
1 2 3 4 5 6 7 8 9 10 |
data |
A data frame containing all variables that should be investigated. |
var_names |
A vector with fitting variable names. |
rm.upper_tri |
Should the upper triangle be omitted? |
print |
A logical value indicating whether the table should be formatted according to APA guidelines. |
digits |
A number specifying how many digit should be printed. |
sig |
Logical value indicating whether stars should be printed when the effect is significant at alpha = .05. Defaults to true when print = TRUE. |
descriptives |
Logical value indicating whether the mean and standard deviations of all variables should be included as second and third column. |
... |
Further arguments that can be passed to |
A data frame.
1 2 3 4 5 | # Default
zero_order_corr(mtcars)
# Customized for printing
zero_order_corr(mtcars, print = T, digits = 3, sig = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.