add_2flextables | R Documentation |
Add two flextables into a document object
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
## Not run: 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) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.