View source: R/tbl_ard_wide_summary.R
tbl_ard_wide_summary | R Documentation |
This function is similar to tbl_ard_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_ard_wide_summary(
cards,
statistic = switch(type[[1]], continuous = c("{median}", "{p25}, {p75}"), c("{n}",
"{p}%")),
type = NULL,
label = NULL,
value = NULL,
include = everything()
)
cards |
( |
statistic |
( |
type |
( |
label |
( |
value |
( |
include |
( |
a gtsummary table of class 'tbl_wide_summary'
library(cards)
ard_stack(
trial,
ard_continuous(variables = age),
.missing = TRUE,
.attributes = TRUE,
.total_n = TRUE
) |>
tbl_ard_wide_summary()
ard_stack(
trial,
ard_dichotomous(variables = response),
ard_categorical(variables = grade),
.missing = TRUE,
.attributes = TRUE,
.total_n = TRUE
) |>
tbl_ard_wide_summary()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.