apacorr: Correlation Matrix APA

apacorrR Documentation

Correlation Matrix APA

Description

Correlation matrix in APA format

Usage

apacorr(
  X,
  vars = NULL,
  w = NULL,
  digits = 2,
  corType = "pearson",
  kableFormat = TRUE,
  kableColor = TRUE
)

Arguments

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')

Value

Correlation matrix in APA format (in HTML if 'kableExtra = TRUE').

Examples

apacorr(mtcars)

matschmitz/schmitz documentation built on May 15, 2022, 4:15 p.m.