tests/gt-examples/01-html-script/html-03-pressure.R

library(gt)

# Create a display table based on `pressure`
pressure_tbl <-
  gt(pressure) %>%
  fmt_scientific(
    columns = pressure,
    decimals = 2
  )

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