apa.cor.matrix: Generic method to generate a correlation matrix with values

Description Usage Arguments Value Examples

View source: R/apaCorrelationMatrix.R

Description

Generic method to generate a correlation matrix with values

Usage

1
apa.cor.matrix(data = data.frame(), position = "lower", sig = TRUE)

Arguments

data

Raw dataset with variables.

position

(optional) Specify whether the correlations should be displayed in the upper, or lower diagonal of the table.

sig

(optional) Specify whether the significance should be displayed in a separate column.

Value

apa.cor.matrix object; a list consisting of

succes

message in case of an error

data

the data with correlation values

smallest

the smallest r value which is significant at p < .05.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# Use apa.cor.matrix function
apa.cor.matrix(
  data = data.frame(
    rnorm(100, mean = 0, sd = 1),
    rnorm(100, mean = 0, sd = 1),
    rnorm(100, mean = 0, sd = 1),
    rnorm(100, mean = 0, sd = 1)
  ),
  position = "upper"
)

apaStyle documentation built on May 20, 2017, 2:09 a.m.

Search within the apaStyle package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.