body_add_table

0th

Percentile

add table

add a table into an rdocx object

Usage
body_add_table(x, value, style = NULL, pos = "after", first_row = TRUE,
  first_column = FALSE, last_row = FALSE, last_column = FALSE,
  no_hband = FALSE, no_vband = TRUE)
Arguments
x

a docx device

value

a data.frame

style

table style

pos

where to add the new element relative to the cursor, one of "after", "before", "on".

first_row, last_row, first_column, last_column, no_hband, no_vband

logical for Word table options

Aliases
  • body_add_table
Examples
# NOT RUN {
library(magrittr)

doc <- read_docx() %>%
  body_add_table(iris, style = "table_template")

print(doc, target = "body_add_table.docx" )
# }
Documentation reproduced from package officer, version 0.1.5, License: GPL-3

Community examples

Looks like there are no examples yet.