tests/gt-examples/01-html-script/html-04-sleep.R

library(gt)

# Create a display table based on `sleep`
sleep_tbl <-
  gt(sleep) %>%
  fmt_scientific(columns = extra) %>%
  tab_footnote(
    footnote = "This is a footnote",
    locations = cells_body(columns = 1, rows = c(2, 3, 4))
  )

sleep_tbl
rstudio/gt documentation built on Nov. 2, 2024, 5:53 p.m.