Convert data frames to ARDs of class 'card'.
Examples
data.frame(
stat_name = c("N", "mean"),
stat_label = c("N", "Mean"),
stat = c(10, 0.5)
) |>
as_card()
#> {cards} data frame: 2 x 3
#> stat_name stat_label stat
#> 1 N N 10
#> 2 mean Mean 0.5