clin_col_widths | R Documentation |
Extraction of flextable print method with special handling of clintable pages and
clin_col_widths(x, ...)
x |
A clintable object |
... |
Named parameters where the names are columns in the flextable and the values are decimals representing the percent of total width of the table |
A clintable object
ct <- clintable(mtcars)
ct <- clin_alt_pages(
ct,
key_cols = c("mpg", "cyl", "hp"),
col_groups = list(
c("disp", "drat", "wt"),
c("qsec", "vs", "am"),
c("gear", "carb")
)
) |>
clin_col_widths(mpg = .2, cyl = .2, disp = .15, vs = .15)
print(ct)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.