Description Usage Arguments Details Value See Also
result_table
make a table with results to be inserted into Microsoft
Word
1 | result_table(mydoc, test, table.title = "", group = "group", cram = NULL)
|
mydoc |
Either a docx object, or string as "html", "flextable", "cat", "cont", or "table" |
test |
A data frame |
table.title |
An optional character string |
group |
An optional character string indicating the name of the column to group on; defaults to "group", set group to NULL to remove grouping |
cram |
An optional character vector of column names or a logical; if
|
This function takes a data frame and converts it to a FlexTable. If mydoc is a docx object, then the FlexTable is added to the docx object which is returned. The docx object can then be written to a Microsoft Word document.
If mydoc is the string "html", then an HTML FlexTable is returned. If mydoc is "flextable", then the FlexTable object is returned. If mydoc is "cat", then the detailed tableone summary of the categorical variables is returned. If mydoc is "cont", then the detailed tableone summary of the continuous variables is returned.
A docx object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.