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

View source: R/apaCorrelationTable.R

apa.cor.tableR Documentation

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 = 0,
  show.conf.interval = TRUE,
  show.sig.stars = TRUE,
  show.pvalue = 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. This argument is deprecated and will be removed from later versions.

show.sig.stars

(TRUE/FALSE) Display stars for significance in table.

show.pvalue

(TRUE/FALSE) Display p-value in table.

landscape

(TRUE/FALSE) Make RTF file landscape

Value

APA table object

Examples

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

# Use apa.cor.table function
table1 <- apa.cor.table(attitude)


# Save Table 1 in a .doc document
apa.save(filename = "table1.doc", table1)


# Create a table for your PDF
# Include the lines below in your rmarkdown or Quarto document
apa.knit.table.for.pdf(table1)

# delete demo file
if (file.exists("table1.doc")) {
     file.remove("table1.doc")
}

dstanley4/apaTables documentation built on Feb. 16, 2024, 2:16 p.m.