add_title_header: Add a title in headers

Description Usage Arguments Details Examples

Description

Add a title in the flextable's header part. It can be inserted at the top or the bottom of header part.

Usage

1
add_title_header(x, title, font_size = 12)

Arguments

x

a flextable object

title

a string containing the title of the table

font_size

integer to use for font size of the title

Details

An horizontal and a vertical merge are performed automatically. Use merge_none to drop theses merging instructions.

Examples

1
2
3
ft <- flextable::flextable( utils::head( iris ),
  col_keys = c("Species", "Sepal.Length", "Petal.Length", "Sepal.Width", "Petal.Width") )
ft_wtitle <- add_title_header(ft, "Iris data set")

problemofpoints/popformatting documentation built on May 14, 2019, 9:39 a.m.