Learn R Programming

apaTables (version 1.5.0)

apa.cor.table: Creates a correlation table in APA style with means and standard deviations

Description

Creates a correlation table in APA style with means and standard deviations

Usage

apa.cor.table(data, filename = NA, table.number = NA,
  show.conf.interval = TRUE, landscape = TRUE)

Arguments

data

Project data frame

filename

(optional) Output filename document filename (must end in .rtf or .doc only)

table.number

Integer to use in table number output line

show.conf.interval

(TRUE/FALSE) Display confidence intervals in table.

landscape

(TRUE/FALSE) Make RTF file landscape

Value

APA table object

Examples

Run this code
# View top few rows of attitude data set
head(attitude)

# Use apa.cor.table function
apa.cor.table(attitude)
apa.cor.table(attitude, show.conf.interval=FALSE)
apa.cor.table(attitude, filename="ex.CorTable1.doc")
apa.cor.table(attitude, show.conf.interval=FALSE, filename="ex.CorTable2.doc")

Run the code above in your browser using DataLab