| as_card | R Documentation |
Convert data frames to ARDs of class 'card'.
as_card(x, check = TRUE)
x |
( |
check |
(scalar |
an ARD data frame of class 'card'
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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.