make_table: Word-Style Tables

Description Usage Arguments Value

View source: R/make_table.R

Description

make_table takes the output from a call to survey_table and formats it using the flextable package.

Usage

1
2
make_table(tables, var_labels, stat_labels, condvar_wide_labels = NULL,
  condvar_long_labels = NULL)

Arguments

tables

a list of tables of summary statistics. Should be the output from a call to survey_table.

var_labels

a vector of character strings containing the labels for the variables.

stat_labels

a vector of character strings containing the labels for the summary statistics, e.g. "Mean", "SD".

condvar_wide_labels

a vector of character strings containing the labels for the "wide" conditioning variable, e.g. "Baseline", "6 Months", "6 Month-Baseline Difference".

condvar_long_labels

a vector of character strings containing the labels for the "long" conditioning variable, e.g. "No Treatment", "Treatment".

Value

a flextable object.


Scott-Coggeshall/magictable documentation built on July 30, 2020, 2:19 a.m.