Prepare the data.frame so that it's ready for output via `gt` or other

tg_gt(tg_datalist, blockData, total_df, group)

Arguments

tg_datalist

A list containing the data frames used to create the table

blockData

The data for the construction of the blocks in the table

total_df

A data frame containing the totals by grouping variable

group

A character denoting the grouping variable

Value

a data.frame containing output polished for presentation in `gt`