View source: R/brdg_wide_summary.R
brdg_wide_summary | R Documentation |
Bridge function for converting tbl_wide_summary()
(and similar) cards to basic gtsummary objects.
All bridge functions begin with prefix brdg_*()
.
brdg_wide_summary(cards, variables, statistic, type)
cards |
( |
variables |
( |
statistic |
(named |
type |
(named |
a gtsummary object
library(cards)
bind_ard(
ard_continuous(trial, variables = c(age, marker)),
ard_attributes(trial, variables = c(age, marker))
) |>
brdg_wide_summary(
variables = c("age", "marker"),
statistic = list(age = c("{mean}", "{sd}"), marker = c("{mean}", "{sd}")),
type = list(age = "continuous", marker = "continuous")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.