result_table2: Create multiple result tables separated by a factor

Description Usage Arguments Details Value See Also

Description

result_table2 make multiple tables with results to be inserted into Microsoft Word

Usage

1
result_table2(mydoc, test, split.by, table.title, group = "group")

Arguments

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

Details

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.

Value

A docx object

See Also

FlexTable


bgulbis/BGTools documentation built on May 12, 2019, 8:21 p.m.