Man pages for flextable
Functions for Tabular Reporting

add_bodyAdd body rows with one value per column
add_body_rowAdd a body row with spanning labels
add_footerAdd footer rows with one value per column
add_footer_linesAdd full-width rows to the footer
add_footer_rowAdd a footer row with spanning labels
add_headerAdd header rows with one value per column
add_header_linesAdd full-width rows to the header
add_header_rowAdd a header row with spanning labels
add_latex_depAdd latex dependencies
alignSet text alignment
append_chunksAppend chunks to flextable content
args_selectors_with_allinternal utils for roxygen tags reuse
args_selectors_without_allinternal utils for roxygen tags reuse
args_x_i_jinternal utils for roxygen tags reuse
args_x_i_partinternal utils for roxygen tags reuse
args_x_i_part_no_allinternal utils for roxygen tags reuse
args_x_jinternal utils for roxygen tags reuse
args_x_j_partinternal utils for roxygen tags reuse
args_x_j_part_no_allinternal utils for roxygen tags reuse
args_x_onlyinternal utils for roxygen tags reuse
args_x_partinternal utils for roxygen tags reuse
args_x_part_no_allinternal utils for roxygen tags reuse
as_bBold chunk
as_bracketBracket chunk
as_chunkText chunk
as_equationEquation chunk
as_flextableMethod to transform objects into flextables
as_flextable.compact_summaryTransform a 'compact_summary' object into a flextable
as_flextable.data.frameTransform and summarise a 'data.frame' into a flextable...
as_flextable.gamTransform a 'gam' model into a flextable
as_flextable.glmTransform a 'glm' object into a flextable
as_flextable.grouped_dataTransform a 'grouped_data' object into a flextable
as_flextable.htestTransform a 'htest' object into a flextable
as_flextable.kmeansTransform a 'kmeans' object into a flextable
as_flextable.lmTransform a 'lm' object into a flextable
as_flextable.merModTransform a 'merMod' or 'lme' object into a flextable
as_flextable.pamTransform a 'pam' object into a flextable
as_flextable.summarizorTransform a 'summarizor' object into a flextable
as_flextable.tableTransform a 'table' object into a flextable
as_flextable.TableTreeTransform an rtables object into a flextable
as_flextable.tabularTransform a 'tables::tabular' object into a flextable
as_flextable.tabulatorTransform a 'tabulator' object into a flextable
as_flextable.xtableTransform a 'xtable' object into a flextable
as_grouped_dataInsert group-label rows into a data frame
as_highlightHighlight chunk
as_iItalic chunk
as_imageImage chunk
as_paragraphBuild a paragraph from chunks
as_qmdQuarto inline markdown chunk
as_rasterTransform a flextable into a raster
as_strikeStrikethrough chunk
as_subSubscript chunk
as_supSuperscript chunk
as_word_fieldWord dynamic field chunk
autofitAdjust columns to their content size
beforeDetect rows before a given value
bgSet background color
body_add_flextableAdd flextable into a Word document
body_replace_flextable_at_bkmAdd flextable at bookmark location in a Word document
boldSet bold font
borderSet cell borders
border_innerSet all inner borders
border_inner_hSet inner horizontal borders
border_inner_vSet inner vertical borders
border_outerSet outer borders
border_removeRemove borders
chunk_dataframeCreate a chunk representation suitable for flextable
colformat_charFormat character cells
colformat_dateFormat date cells
colformat_datetimeFormat datetime cells
colformat_doubleFormat double cells
colformat_imageFormat cells as images
colformat_intFormat integer cells
colformat_lglFormat logical cells
colformat_numFormat numeric cells with format()
colorSet font color
colorizeColorize chunk
compact_summaryCompact Summary of a Dataset
composeSet cell content from paragraph chunks
continuous_summarySummarize continuous variables as a flextable
delete_columnsDelete flextable columns
delete_partDelete flextable part
delete_rowsDelete flextable rows
df_printerdata.frame automatic printing as a flextable
dim.flextableGet column widths and row heights of a flextable
dim.flextableGrobGet optimal width and height of a flextable grob
dim_prettyCalculate optimal column widths and row heights
empty_blanksMake blank columns transparent
fit_columnsConstrain table width by wrapping text
fit_to_widthConstrain table width by shrinking font size
fix_border_issuesFix border issues when cells are merged
flextableCreate a flextable from a data frame
flextable_dimGet overall width and height of a flextable
flextable_html_dependencyhtmlDependency for flextable objects
flextable-packageflextable: Functions for Tabular Reporting
flextable_selectorsSelectors in flextable
flextable_to_rmdPrint a flextable inside knitr loops and conditionals
fmt_2statsFormat summarizor statistics as text
fmt_avg_devFormat mean and standard deviation as text
fmt_dblFormat numbers as doubles
fmt_header_nFormat count as '(N=XX)' for column headers
fmt_intFormat numbers as integers
fmt_n_percentFormat count and percentage as text
fmt_pctFormat numbers as percentages
fmt_signif_after_zerosFormat with significant figures after zeros
fontSet font
fontsizeSet font size
footers_flextable_at_bkmAdd flextable at a bookmark location in document's footer
footnoteAdd footnotes to flextable
fp_border_defaultCreate border formatting with flextable defaults
fp_text_defaultCreate text formatting with flextable defaults
gen_grobRender a flextable as a graphic object
get_flextable_defaultsGet flextable defaults formatting properties
gg_chunkggplot chunk
grid_chunkGrid Graphics chunk
headers_flextable_at_bkmAdd flextable at a bookmark location in document's header
heightSet flextable rows height
highlightSet text highlight color
hlineSet horizontal borders below selected rows
hline_bottomSet the bottom border of a table part
hline_topSet the top border of a table part
hruleSet how row heights are determined
htmltools_valueConvert a flextable to an HTML object
hyperlink_textHyperlink chunk
information_data_cellGet cell-level information from a flextable
information_data_chunkGet chunk-level content information from a flextable
information_data_paragraphGet paragraph-level information from a flextable
italicSet italic font
keep_with_nextSet Word 'Keep with next' instructions
knit_print.flextableRender flextable in knitr documents
labelizorReplace displayed text with labels
linerangeMini linerange chunk
line_spacingSet line spacing
lollipopMini lollipop chart chunk wrapper
merge_atMerge flextable cells into a single one
merge_hMerge flextable cells horizontally
merge_h_rangeRowwise merge of a range of columns
merge_noneDelete flextable merging information
merge_vMerge flextable cells vertically
minibarMini barplot chunk
ncol_keysNumber of columns
nrow_partNumber of rows of a part
paddingSet paragraph paddings
paginatePrevent page breaks inside a flextable
ph_with.flextableAdd a flextable into a PowerPoint slide
plot_chunkMini plot chunk
plot.flextablePlot a flextable
plot.flextableGrobplot a flextable grob
prepend_chunksPrepend chunks to flextable content
print.flextablePrint a flextable
proc_freqFrequency table
regulartableflextable old functions
rotateRotate cell text
rtf_add.flextableAdd a 'flextable' into an RTF document
save_as_docxSave flextable objects in a 'Word' file
save_as_htmlSave flextable objects in an 'HTML' file
save_as_imageSave a flextable in a 'png' or 'svg' file
save_as_pptxSave flextable objects in a 'PowerPoint' file
save_as_rtfSave flextable objects in an 'RTF' file
separate_headerSplit column names using a separator into multiple rows
set_captionSet flextable caption
set_flextable_defaultsModify flextable defaults formatting properties
set_formatterSet column formatter functions
set_formatter_typeSet Formatter by Types of Columns
set_header_footer_dfReplace the entire header or footer from a data frame
set_header_labelsRename column labels in the header
set_table_propertiesSet table layout and width properties
shift_tableCreate a shift table
split_columnsSplit a flextable into pages by columns
split_rowsSplit a flextable into pages by rows
split_to_pagesSplit a flextable into pages by rows and columns
styleSet formatting properties on a flextable selection
summarizorPrepare descriptive statistics for flextable
surroundSurround cells with borders
tab_settingsSet tabulation marks configuration
tabulatorCreate pivot-style summary tables
tabulator_colnamesColumn keys of tabulator objects
theme_alafoliApply alafoli theme
theme_apaApply APA theme
theme_booktabsApply booktabs theme
theme_borderlessApply borderless theme
theme_boxApply box theme
theme_tronApply tron theme
theme_tron_legacyApply tron legacy theme
theme_vaderApply Sith Lord Darth Vader theme
theme_vanillaApply vanilla theme
theme_zebraApply zebra theme
to_html.flextableGet HTML code as a string
use_df_printerSet data.frame automatic printing as a flextable
use_flextable_qmdInstall the flextable-qmd Quarto extension
use_model_printerSet automatic flextable printing for models
valignSet vertical alignment
vlineSet vertical borders to the right of selected columns
vline_leftSet the left border of the table
vline_rightSet the right border of the table
voidClear the displayed content of selected columns
widthSet columns width
wrap_flextableWrap a flextable for use with patchwork
flextable documentation built on June 2, 2026, 9:08 a.m.