Description Usage Arguments Value Examples
View source: R/add_flextable.R
Add a flextable or mytable object into a document object
1 | add_flextable(mydoc, ftable, echo = FALSE, code = "", landscape = FALSE)
|
mydoc |
A document object |
ftable |
A flextable or mytable object |
echo |
whether or not display R code |
code |
R code string |
landscape |
Logical. Whether or not make a landscape section. |
a document object
1 2 3 4 5 6 7 8 9 10 11 12 13 | require(rrtable)
require(moonBook)
require(officer)
require(magrittr)
ftable=mytable(Dx~.,data=acs)
title="mytable Example"
ft=df2flextable(head(iris))
title2="df2flextable Example"
doc=read_docx()
doc %>% add_text(title=title) %>%
add_flextable(ftable) %>%
add_text(title=title2) %>%
add_flextable(ft)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.