apa_table: Create APA formatted tables

View source: R/apa_table.r

apa_tableR Documentation

Create APA formatted tables

Description

Create create APA formatted tables.

Usage

apa_table(
  data,
  header.names = NULL,
  title = "Table #",
  subtitle = "Add subtitle",
  save = FALSE,
  path = "table.png",
  width = NULL,
  note = NULL
)

Arguments

data

A data file.

header.names

A vector of header names to change columns names. Default is NULL.

title

The title of the table. Default is Table #.

subtitle

The subtitle of the table. Default is ⁠Add subtitle⁠.

save

A logical statement indicates whether the table should be saved as a file under a local folder. If false, the table will be returned as an object. By default, FALSE.

path

A quoted string to indicate the file's pathway and name if save = TRUE. By default, "table.png".

width

A numeric value between 0 to 1 to indicate the width of the table. By default, NULL.

note

A quoted string to add a note at the bottom of the table. By default, NULL.

Value

Print and saves APA formatted tables.


CCMH-PSU/CCMHr documentation built on Jan. 11, 2025, 4:36 p.m.