View source: R/flextable_sizes.R
dim_pretty | R Documentation |
return minimum estimated widths and heights for each table columns and rows in inches.
dim_pretty(x, part = "all", unit = "in", hspans = "none")
x |
flextable object |
part |
partname of the table (one of 'all', 'body', 'header' or 'footer') |
unit |
unit for returned values, one of "in", "cm", "mm". |
hspans |
specifies how cells that are horizontally are included in the calculation. It must be one of the following values "none", "divided" or "included". If "none", widths of horizontally spanned cells is set to 0 (then do not affect the widths); if "divided", widths of horizontally spanned cells is divided by the number of spanned cells; if "included", all widths (included horizontally spanned cells) will be used in the calculation. |
Other flextable dimensions:
autofit()
,
dim.flextable()
,
fit_to_width()
,
flextable_dim()
,
height()
,
hrule()
,
ncol_keys()
,
nrow_part()
,
set_table_properties()
,
width()
ftab <- flextable(head(mtcars))
dim_pretty(ftab)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.