clin_col_widths {clinify} | R Documentation |
Set column widths using percent
Description
Extraction of flextable print method with special handling of clintable pages and
Usage
clin_col_widths(x, ...)
Arguments
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 |
Value
A clintable object
Examples
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)
[Package clinify version 0.3.0 Index]