knitr::opts_chunk$set(echo = TRUE)
library(gt)

Create a display table based on morley.

gt(morley) %>%
  fmt_number(
    columns = Speed,
    decimals = 0,
    sep_mark = ",") %>%
  cols_align(align = "left", columns = c(Run, Speed))


rstudio/gt documentation built on June 29, 2024, 6:54 a.m.