apacorr | R Documentation |
Correlation matrix in APA format
apacorr( X, vars = NULL, w = NULL, digits = 2, corType = "pearson", kableFormat = TRUE, kableColor = TRUE )
X |
a matrix, data.frame, or data table |
vars |
(optional; Default = 'NULL') Character vector on which compute the function. |
w |
(optional; Default = 'NULL') Weight vector to be applied to the analyses. |
digits |
(optional; Default = 2) |
corType |
(optional; Default = "pearson") Correlation type. |
kableFormat |
(optional; Default = 'TRUE') Should the table be formated with kableExtra |
kableColor |
(optional; Default = 'TRUE') Color formatble table (only if 'kableFormat = TRUE') |
Correlation matrix in APA format (in HTML if 'kableExtra = TRUE').
apacorr(mtcars)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.