write_clintable | R Documentation |
Write a clinify table out to a docx file
write_clintable(x, file, apply_defaults = TRUE)
x |
a clintable object |
file |
The file path to which the file should be written |
apply_defaults |
Apply default styles. These styles are stored in the options clinify_header_default, clinify_footer_default, and clinify_table_default respectively. Defaults to true. |
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')
)
)
write_clintable(ct, file.path(tempdir(), 'demo.docx'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.