write_table: Write data.frame or matrix to word

Description Usage Arguments Value Examples

View source: R/write_table.R

Description

Write data.frame or matrix to word

Usage

1
2
3
4
5
6
7
8
write_table(
  x,
  rowlabelhead = "",
  groupspan = NULL,
  caption = NULL,
  footnote = NULL,
  ...
)

Arguments

x

data.frame or matrix

rowlabelhead

A heading for the first column of the table, which contains the row labels.

groupspan

A vector of integers specifying the number of strata to group together. The group name will be used as span label.

caption

A character string to be added as a caption to the table. The default NULL causes the caption to be omitted.

footnote

A character string to be added as a footnote to the table. Can also be a vector which results in multiple lines of footnotes. The default NULL causes the footnote to be omitted.

...

Kept for later used.

Value

A flextable object.

Examples

1
2
3
4
## Not run: 
write_table(head(mtcars))

## End(Not run)

adayim/cctab documentation built on Dec. 18, 2021, 10:26 p.m.