Learn R Programming

psytabs (version 0.1)

corTable: Correlation matrix table.

Description

Produces a simple correlation matrix table.

Usage

corTable(data, sd = FALSE)

Arguments

data
Variables for which the correlation matrix should be calculated.
sd
Whether the standard derivition should be displayed in the diagonal.

Value

  • A dataframe comprising the correlation matrix table.

Examples

Run this code
data(myData)
(cor.tab <- corTable(myData[,1:4]))
corTable(myData[,1:4], sd=TRUE)
#saveTable(cor.tab, "corTab.rtf")

Run the code above in your browser using DataLab