tests/testthat/_snaps/add_hierarchical_count_row.md

add_hierarchical_count_row() works

Code
  dplyr::slice(as.data.frame(tbl, col_label = FALSE), 2)
Output
                             label stat_1 stat_2
  1 Overall total number of events      7      3
Code
  dplyr::slice(as.data.frame(add_hierarchical_count_row(add_overall(tbl0),
  .after = 1L), col_label = FALSE), 2)
Output
                             label stat_0 stat_1 stat_2
  1 Overall total number of events     10      7      3

add_hierarchical_count_row(data_preprocess) works

Code
  dplyr::slice(as.data.frame(tbl, col_label = FALSE), 2)
Output
                             label stat_1 stat_2
  1 Overall total number of events     14      6


Try the crane package in your browser

Any scripts or data that you put into this service are public.

crane documentation built on Aug. 30, 2025, 1:12 a.m.