View source: R/create.table.of.sample.characteristics.r
1 2 3 4 |
data_for_table |
The data to use to create the table, no default. |
data_dictionary |
the data dictionary, no default. |
strata |
The strata variable, defaults to NULL. |
vars |
The variables to include in the table, defaults to NULL, in which case it is defined as names(data_dictionary)[sapply(data_dictionary, function(x) x$incl == "Yes")]. |
exclude_vars |
Character vector of variable names to exclude from table, defaults to NULL. |
include_overall |
Logical and used only if strata is not NULL. defaults to TRUE in which case an overall column is also included. |
include_missing_column |
Logical. If TRUE a column is missing indicating the number ( \itemdigitsInteger. Number of digits to use when rounding table entries. Defaults to 1. \itemsaveLogical. If TRUE the table object is also saved to disk as a .tex file. Defaults to FALSE. |
Creates a table of sample characteristics
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.