Create flextable

flextable() qflextable()

flextable creation

flextable-package

flextable: Functions for Tabular Reporting

Headers and footers

Add rows in headers, footers and body parts

add_header_row()

Add header labels

add_footer_row()

Add footer labels

add_header_lines()

Add labels as new rows in the header

add_footer_lines()

Add labels as new rows in the footer

add_header()

Add column values as new lines in header

add_footer()

Add column values as new lines in footer

separate_header()

Separate collapsed colnames into multiple rows

set_header_labels()

Change headers labels

set_header_df() set_footer_df()

Set flextable's header or footer rows

delete_part()

delete flextable part

add_body()

Add column values as new lines in body

add_body_row()

Add body labels

Manage flextable layout

merge_at()

Merge flextable cells into a single one

merge_h()

Merge flextable cells horizontally

merge_h_range()

rowwise merge of a range of columns

merge_none()

Delete flextable merging informations

merge_v()

Merge flextable cells vertically

height() height_all()

Set flextable rows height

set_table_properties()

Global table properties

width()

Set columns width

hrule()

Set flextable rule for rows heights

autofit()

Adjusts cell widths and heights

fit_to_width()

fit a flextable to a maximum width

dim(<flextable>)

Get widths and heights of flextable

dim_pretty()

Calculate pretty dimensions

flextable_dim()

width and height of a flextable object

as_grouped_data()

grouped data transformation

as_flextable(<xtable>) xtable_to_flextable()

get a flextable from a xtable object

as_flextable()

method to convert object to flextable

nrow_part()

Number of rows of a part

ncol_keys()

Number of columns

Format flextable

Modify flextable`s formatting properties.

set_flextable_defaults() init_flextable_defaults()

Modify flextable defaults formatting properties

get_flextable_defaults()

Get flextable defaults formatting properties

style()

Set flextable style

align() align_text_col() align_nottext_col()

Set text alignment

bg()

Set background color

font()

Set font

fontsize()

Set font size

italic()

Set italic font

bold()

Set bold font

color()

Set font color

line_spacing()

Set text alignment

highlight()

Text highlight color

padding()

Set paragraph paddings

valign()

Set vertical alignment

rotate()

rotate cell text

empty_blanks()

make blank columns as transparent

borders

Borders management

hline()

set horizontal borders

hline_bottom()

set bottom horizontal border

hline_top()

set top horizontal border

vline()

set vertical borders

vline_left()

set flextable left vertical borders

vline_right()

set flextable right vertical borders

border_inner()

set vertical & horizontal inner borders

border_inner_h()

set inner borders

border_inner_v()

set vertical inner borders

border_outer()

set outer borders

fix_border_issues()

fix border issues when cell are merged

border_remove()

remove borders

surround()

Set borders for a selection of cells

Flextable themes

Apply theme functions.

theme_alafoli()

Apply alafoli theme

theme_booktabs()

Apply booktabs theme

theme_box()

Apply box theme

theme_tron()

Apply tron theme

theme_tron_legacy()

Apply tron legacy theme

theme_vader()

Apply Sith Lord Darth Vader theme

theme_vanilla()

Apply vanilla theme

theme_zebra()

Apply zebra theme

Mixed content

How to define complex paragraphs with mixed content or to add images or chunks of text in existing cells.

compose() mk_par()

Define displayed values and mixed content

as_paragraph()

concatenate chunks in a flextable

append_chunks()

append chunks to flextable content

prepend_chunks()

prepend chunks to flextable content

footnote()

add footnotes to flextable

Elements for mixed content

The functions that can be called to create rich formated content

as_chunk()

chunk of text wrapper

as_image()

image chunk wrapper

gg_chunk()

gg plots chunk wrapper

plot_chunk()

mini plots chunk wrapper

as_b()

bold chunk

as_i()

italic chunk

as_sub()

subscript chunk

as_sup()

superscript chunk

as_highlight()

highlight chunk

colorize()

colorize chunk

minibar()

mini barplots chunk wrapper

linerange()

mini linerange chunk wrapper

lollipop()

mini lollipop chart chunk wrapper

as_bracket()

chunk with values in brackets

hyperlink_text()

Chunk of text with hyperlink

as_equation()

equation chunk

as_word_field()

'Word' computed field

Easy formatting

Define quickly how numbers and characters of tables are displayed

colformat_char()

format character cells

colformat_date()

format date cells

colformat_datetime()

format datetime cells

colformat_double()

format numeric cells

colformat_image()

format cells as images

colformat_int()

format integer cells

colformat_lgl()

format logical cells

colformat_num()

format numeric cells

set_formatter() set_formatter_type()

set column formatter functions

Caption

set_caption()

Set Caption

miscellaneous

fmt_2stats()

format content for data generated with summarizor()

fp_border_default()

Border formatting properties

fp_text_default()

Text formatting properties

before()

is an element before a match with entries

void()

Delete flextable content

Output functions

print(<flextable>)

flextable printing

knit_print(<flextable>)

Render flextable in rmarkdown

body_add_flextable() body_replace_flextable_at_bkm()

add flextable into a Word document

ph_with(<flextable>)

add a flextable into a PowerPoint slide

plot(<flextable>)

plot a flextable

save_as_image()

save a flextable as an image

save_as_html()

Save a Flextable in an HTML File

save_as_docx()

save flextable objects in an Word file

save_as_pptx()

save flextable objects in an PowerPoint file

htmltools_value()

flextable as an HTML object

as_raster()

get a flextable as a raster

flextable_to_rmd()

flextable raw code

df_printer()

data.frame automatic printing as a flextable

use_df_printer()

set data.frame automatic printing as a flextable

use_model_printer()

set model automatic printing as a flextable

add_latex_dep()

add latex dependencies

flextable_html_dependency()

htmlDependency for flextable objects

footers_flextable_at_bkm()

add flextable at a bookmark location in document's footer

headers_flextable_at_bkm()

add flextable at a bookmark location in document's header

as_flextable

get flextable from objects and utilities

tabulator() summary(<tabulator>)

Tabulation of aggregations

tabulator_colnames()

column keys of tabulator objects

summarizor()

data summary preparation

as_flextable()

method to convert object to flextable

as_flextable(<gam>)

tabular summary for gam object

as_flextable(<glm>)

tabular summary for glm object

as_flextable(<grouped_data>)

tabular summary for grouped_data object

as_flextable(<htest>)

tabular summary for htest object

as_flextable(<kmeans>)

tabular summary for kmeans

as_flextable(<lm>)

tabular summary for lm object

as_flextable(<merMod>) as_flextable(<lme>) as_flextable(<gls>) as_flextable(<nlme>) as_flextable(<brmsfit>) as_flextable(<glmmTMB>) as_flextable(<glmmadmb>)

tabular summary for mixed model

as_flextable(<pam>)

tabular summary for pam

as_flextable(<tabulator>)

tabulator to flextable

as_flextable(<xtable>) xtable_to_flextable()

get a flextable from a xtable object

continuous_summary()

continuous columns summary

proc_freq()

frequency table as flextable