UseDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/davidgohel/flextable/llms.txt
Use this file to discover all available pages before exploring further.
width() to set column widths and height() / height_all() to set row heights. Heights only take effect when hrule() is set to "atleast" or "exact".
width()
Sets the width of one or more columns.
width() has no effect when set_table_properties(layout = "autofit") is active. In HTML output, column widths are not applied.A
flextable object.Column selector.
NULL applies the width to all columns.Column width. When
j selects multiple columns, you can supply a single value (applied to all) or a vector of the same length as the number of selected columns.Unit for the width value. One of
"in" (inches), "cm", or "mm".Example
height()
Sets the height of selected rows.
height() has no effect when hrule() is set to "auto" (the default), except in PowerPoint, which does not support automatic row height.A
flextable object.Row selector.
NULL applies the height to all rows in the specified part.Row height. Accepts a single value applied to all selected rows, or a vector of the same length as the number of selected rows.
Which part to target:
"body", "header", or "footer". "all" is not accepted.Unit for the height value. One of
"in" (inches), "cm", or "mm".Example
height_all()
Sets the same height for every row in a selected part. A convenience wrapper around height().
A
flextable object.A single positive numeric value to apply to all rows.
Which part to target:
"body", "header", "footer", or "all".Unit for the height value. One of
"in" (inches), "cm", or "mm".Example
See also
autofit()— automatically size columns and rows to fit contenthrule()— control how row heights are interpretedset_table_properties()— set layout mode