Description Usage Arguments Details Value See Also
result_table2
make multiple tables with results to be inserted into
Microsoft Word
1 | result_table2(mydoc, test, split.by, table.title, group = "group")
|
mydoc |
A docx object |
test |
A data frame |
split.by |
A character string indicating the name of the column used to separate the data into multiple data frames |
table.title |
A character string, will proceed the name of the factor |
group |
An optional character string indicating the name of the column to group on; defaults to "group", set group to NULL to remove grouping |
This function takes a data frame and converts it into a separate FlexTable
for each factor of a variable. The FlexTables are then added to the docx
object which is returned. The docx object can then be written to a Microsoft
Word document. Similar to result_table
except the data is first
separated into multiple data frames based on the split.by column.
A docx object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.