Scale gt table contents for document
Examples
gt::gtcars |>
dplyr::slice_head(n = 10) |>
dplyr::select(mfr, model, year, msrp, ctry_origin) |>
gt::gt(
groupname_col = "ctry_origin",
rowname_col = "mfr",
row_group_as_column = TRUE) |>
scale_gt(tbl_stub_pct = 0.4)
model
year
msrp
Ford
Ferrari
Ferrari
Ferrari
Ferrari
Ferrari
Ferrari
Ferrari
Ferrari
Ferrari