View source: R/tbl_wide_summary.R
tbl_wide_summary | R Documentation |
This function is similar to tbl_summary()
, but places summary statistics
wide, in separate columns.
All included variables must be of the same summary type, e.g. all continuous
summaries or all categorical summaries (which encompasses dichotomous variables).
tbl_wide_summary(
data,
label = NULL,
statistic = switch(type[[1]], continuous = c("{median}", "{p25}, {p75}"), c("{n}",
"{p}%")),
digits = NULL,
type = NULL,
value = NULL,
sort = all_categorical(FALSE) ~ "alphanumeric",
include = everything()
)
data |
( |
label |
( |
statistic |
( |
digits |
( |
type |
( |
value |
( |
sort |
( |
include |
( |
a gtsummary table of class 'tbl_wide_summary'
trial |>
tbl_wide_summary(include = c(response, grade))
trial |>
tbl_strata(
strata = trt,
~tbl_wide_summary(.x, include = c(age, marker))
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.