brdg_wide_summary {gtsummary} | R Documentation |
Wide summary table bridge
Description
Bridge function for converting tbl_wide_summary()
(and similar) cards to basic gtsummary objects.
All bridge functions begin with prefix brdg_*()
.
Usage
brdg_wide_summary(cards, variables, statistic, type)
Arguments
cards |
( |
variables |
( |
statistic |
(named |
type |
(named |
Value
a gtsummary object
Examples
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")
)
[Package gtsummary version 2.0.0 Index]