This function takes a gt table object and changes font-type, borders etc to align with APA style.

gt_apa_style(gt_table, fmt_labels_md = TRUE)

Source

Created by Philip Parker, https://gist.github.com/pdparker/1b61b6d36d09cb295bf286a931990159. Slightly expanded here.

Arguments

gt_table

A gt-table

fmt_labels_md

Should row and column labels be formatted with markdown/HTML (Defaults to TRUE)