| block_table {officer} | R Documentation |
Table block
Description
Create a representation of a table
Usage
block_table(x, header = TRUE, properties = prop_table(), alignment = NULL)
Arguments
x |
a data.frame to add as a table |
header |
display header if TRUE |
properties |
table properties, see |
alignment |
alignment for each columns, 'l' for left, 'r' for right and 'c' for center. Default to NULL. |
See Also
Other block functions for reporting:
block_caption(),
block_list(),
block_pour_docx(),
block_section(),
block_toc(),
fpar(),
plot_instr(),
unordered_list()
Examples
block_table(x = head(iris))
block_table(x = mtcars, header = TRUE,
properties = prop_table(
tcf = table_conditional_formatting(
first_row = TRUE, first_column = TRUE)
))
[Package officer version 0.6.6 Index]