Description Usage Arguments Value Examples
Function to return the summary table using gtsummary package
1 | get_summary_gtsummary(the_data, selectvar, byvar = NULL, label = NULL)
|
the_data |
a data frame |
selectvar |
variables to be selected for summary |
byvar |
A column name (quoted or unquoted) in data. Summary statistics will be calculated separately for each level of the by variable. If NULL, summary statistics are calculated using all observations. |
label |
List of formulas specifying variables labels, |
the summary using gtsummarys tbl_summary option
1 2 3 | trial <- gtsummary::trial
table1 <- get_summary_gtsummary(trial, c("trt", "age", "grade"),
byvar = "trt")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.