table_conditional_formatting: Table conditional formatting

View source: R/ooxml_block_objects.R

table_conditional_formattingR Documentation

Table conditional formatting

Description

Tables can be conditionally formatted based on few properties as whether the content is in the first row, last row, first column, or last column, or whether the rows or columns are to be banded.

Usage

table_conditional_formatting(
  first_row = TRUE,
  first_column = FALSE,
  last_row = FALSE,
  last_column = FALSE,
  no_hband = FALSE,
  no_vband = TRUE
)

Arguments

first_row, last_row

apply or remove formatting from the first or last row in the table.

first_column, last_column

apply or remove formatting from the first or last column in the table.

no_hband, no_vband

don't display odd and even rows or columns with alternating shading for ease of reading.

Note

You must define a format for first_row, first_column and other properties if you need to use them. The format is defined in a docx template.

See Also

Other functions for table definition: prop_table(), table_colwidths(), table_layout(), table_stylenames(), table_width()

Examples

table_conditional_formatting(first_row = TRUE, first_column = TRUE)

officer documentation built on Oct. 10, 2024, 1:06 a.m.