data.frame(
stat_name = c("N", "mean"),
stat_label = c("N", "Mean"),
stat = c(10, 0.5)
) |>
as_card(check = FALSE)
dplyr::tibble(
variable = "AGE",
stat_name = c("N", "mean"),
stat_label = c("N", "Mean"),
stat = list(10, 0.5),
fmt_fun = replicate(2, list()),
warning = replicate(2, list()),
error = replicate(2, list())
) |>
as_card()
Run the code above in your browser using DataLab