Skip to content

Instantly share code, notes, and snippets.

View stanfordprisonexperiment's full-sized avatar

stanfordprisonexperiment

View GitHub Profile
@stanfordprisonexperiment
stanfordprisonexperiment / apa_style_gt.R
Last active April 21, 2025 11:05 — forked from pdparker/apa_style_gt.R
APA Style Table for GT Package
require(tidyverse)
require(gt)
# Provides APA 7th Styling to a GT table
apa_style <- function(data) {
data %>%
opt_table_lines(extent = "none") %>%
tab_options(
heading.border.bottom.width = 2,
heading.border.bottom.color = "black",
heading.border.bottom.style = "solid",