Function tests the structure and returns notes when object does not conform to expected structure.
check_ard_structure(x, column_order = TRUE, method = TRUE)(data.frame)
an ARD data frame of class 'card'
(scalar logical)
check whether ordering of columns adheres to to cards::tidy_ard_column_order().
(scalar logical)
check whether a "stat_name" equal to "method" appears in results.
an ARD data frame of class 'card' (invisible)
ard_summary(ADSL, variables = "AGE") |>
dplyr::select(-warning, -error) |>
check_ard_structure()
#> The following columns are not present: "warning" and "error".
#> Expecting a row with `stat_name = 'method'`, but it is not present.