Description Usage Arguments Value Examples
Add two flextables into a document object
1 | add_2flextables(mydoc, ft1, ft2, echo = FALSE, width = 3, code = "")
|
mydoc |
A document object |
ft1 |
The first flextable |
ft2 |
The second flextable |
echo |
whether or not display R code |
width |
plot width in inches |
code |
R code string |
a document object
1 2 3 4 5 6 7 8 9 10 11 12 | require(rrtable)
require(officer)
require(magrittr)
title="Two Tables"
ft1=df2flextable(head(iris[1:4]))
ft2=df2flextable(tail(iris[1:4]))
doc=read_docx()
doc %>% add_text(title=title) %>%
add_2flextables(ft1,ft2)
doc=read_pptx()
doc %>% add_text(title=title) %>%
add_2flextables(ft1,ft2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.