The groups (and their levels), the variables (their levels, statistics
and contexts) and the statistics of an ARD, and what went wrong while it
was made (tfl_ard_conditions()): what tfl_review_spec() checks a
report's table definition against when the report's ARD exists. Put a
report's facts in facts$ard[[output_id]].
Value
A list: groups (a named list: each group variable's levels),
variables (a named list: each variable's levels, stats and
contexts), stats (every statistic) and conditions.
Examples
if (requireNamespace("cards", quietly = TRUE)) {
ard <- cards::ard_summary(cards::ADSL, by = ARM, variables = AGE)
str(tfl_ard_facts(ard)$variables$AGE$stats)
}
#> chr [1:8] "N" "mean" "sd" "median" "p25" "p75" "min" "max"