Description Usage Arguments Value
Take a data frame with a diagnosis column and a number of covariate columns and specify the percentage of specified covariate levels in each group and/or the mean +/- sd for quantitative variables for each covariate desired. Although it was designed for generating sample summary tables in the context of bioinformatics experiments and the terminology refers to this, it can be used more generally as well.
1 2 |
df |
The data frame containing the columns to be extracted, both diagnosis and covariates. |
dg_col |
Column specifying the diagnosis column name, which is used to split the table. Levels of this value will be used to generate |
percent_cols |
Character vector of column names specifying the |
percent_col_cats |
Character vector specifying the values for which the percentage should be calculated for each percent column. |
group_names |
Optional character vector specifying the groups within the dg_col, which will be used to order the resulting table. |
row_names |
Optional character vector specifying what the rownames of the resulting table should be. |
A table summarizing the covariates.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.