fmt_covid_table: Standardize Table Styling for COVID-19 Reports

View source: R/fmt_covid_table.R

fmt_covid_tableR Documentation

Standardize Table Styling for COVID-19 Reports

Description

fmt_covid_table() standardizes styling for flextable and gt_tbl objects

Usage

fmt_covid_table(
  table,
  total = FALSE,
  align_label = c("left", "center", "right"),
  color = "midnightblue"
)

## S3 method for class 'flextable'
fmt_covid_table(
  table,
  total = FALSE,
  align_label = c("left", "center", "right"),
  color = "midnightblue"
)

## S3 method for class 'gt_tbl'
fmt_covid_table(
  table,
  total = FALSE,
  align_label = c("left", "center", "right"),
  color = "midnightblue"
)

Arguments

table

A flextable or gt_tbl object

total

Does the table contain a "Total" row at the bottom?

align_label

Alignment for left-most column (labels, by convention)

Value

A flextable or gt_tbl with modified styling


jesse-smith/covidReport documentation built on Aug. 3, 2024, 4:52 p.m.