write_clindoc {clinify} | R Documentation |
Clintable write method
Description
Write a clinify table out to a docx file
Usage
write_clindoc(x, file)
Arguments
x |
a clintable object |
file |
The file path to which the file should be written |
Value
Invisible
Examples
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"))
[Package clinify version 0.3.0 Index]