officer (version 0.3.8)

block_table: table

Description

Create a representation of a table

Usage

block_table(
  x,
  style = NULL,
  header = TRUE,
  first_row = TRUE,
  first_column = FALSE,
  last_row = FALSE,
  last_column = FALSE,
  no_hband = FALSE,
  no_vband = TRUE
)

Arguments

x

a data.frame to add as a table

style

table style

header

display header if TRUE

first_row

Specifies that the first column conditional formatting should be applied. Details for this and other conditional formatting options can be found at http://officeopenxml.com/WPtblLook.php.

first_column

Specifies that the first column conditional formatting should be applied.

last_row

Specifies that the first column conditional formatting should be applied.

last_column

Specifies that the first column conditional formatting should be applied.

no_hband

Specifies that the first column conditional formatting should be applied.

no_vband

Specifies that the first column conditional formatting should be applied.

See Also

Other block functions for reporting: block_caption(), block_list(), block_section(), block_toc(), fpar(), plot_instr(), unordered_list()

Examples

Run this code
# NOT RUN {
block_table(x = mtcars)
# }

Run the code above in your browser using DataLab