body_add_crosstable() adds such a flextable an officer document.
body_add_crosstable(
doc,
x,
body_fontsize = NULL,
header_fontsize = ceiling(body_fontsize * 1.2),
padding_v = NULL,
allow_break = TRUE,
max_cols = 25,
...
)a rdocx object, created by officer::read_docx()
a crosstable object
fontsize of the body
fontsize of the header. Defaults to 1.2*body_fontsize.
vertical padding of all table rows
allow crosstable rows to break across pages
max number of columns for x
further arguments passed to as_flextable.crosstable()
The docx object doc