powered by
Set table layout and table width. Default to fixed algorithm.
If layout is fixed, column widths will be used to display the table; width is ignored.
width
If layout is autofit, column widths will not be used; table width is used (as a percentage).
set_table_properties(x, layout = "fixed", width = 1)
flextable object
'autofit' or 'fixed' algorithm. Default to 'autofit'.
value of the preferred width of the table in percent.
Other flextable dimensions: autofit(), dim.flextable(), dim_pretty(), fit_to_width(), flextable_dim(), height(), hrule(), width()
autofit()
dim.flextable()
dim_pretty()
fit_to_width()
flextable_dim()
height()
hrule()
width()
# NOT RUN { library(flextable) ft_1 <- qflextable(head(cars)) ft_2 <- set_table_properties(ft_1, width = .5, layout = "autofit") ft_2 # }
Run the code above in your browser using DataLab