write_clindoc | R Documentation |
Write a clinify table out to a docx file
write_clindoc(x, file)
x |
a clintable object |
file |
The file path to which the file should be written |
Invisible
ct <- clintable(mtcars)
ct <- clin_alt_pages(
ct,
key_cols = c("mpg", "cyl", "hp"),
col_groups = list(
c("disp", "drat", "wt"),
c("qsec", "vs", "am"),
c("gear", "carb")
)
)
# Get document object directly
doc <- clindoc(ct)
# Write out docx file
write_clindoc(ct, file.path(tempdir(), "demo.docx"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.