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.
table_conditional_formatting(
first_row = TRUE,
first_column = FALSE,
last_row = FALSE,
last_column = FALSE,
no_hband = FALSE,
no_vband = TRUE
)
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.
Other functions for table definition:
prop_table()
,
table_colwidths()
,
table_layout()
,
table_stylenames()
,
table_width()
table_conditional_formatting(first_row = TRUE, first_column = TRUE)
#> $first_row
#> [1] TRUE
#>
#> $first_column
#> [1] TRUE
#>
#> $last_row
#> [1] FALSE
#>
#> $last_column
#> [1] FALSE
#>
#> $no_hband
#> [1] FALSE
#>
#> $no_vband
#> [1] TRUE
#>
#> attr(,"class")
#> [1] "table_conditional_formatting"