tests/testthat/_snaps/peds_ethnicity.md

void(peds_table_ethnicity()) matches snapshot

Code
  tbl_void
Output
  a flextable object.
  col_keys: `grp`, `n`, `percent`, `rate` 
  header has 1 row(s) 
  body has 4 row(s) 
  original dataset sample: 
                    grp    n percent       rate
  1     Hispanic/Latino  700      70 10000.0000
  2 Not Hispanic/Latino  100      10 10000.0000
  3             Missing  200      20         NA
  4               Total 1000     100   106.7047

peds_calc_ethnicity() matches snapshot

Code
  tbl_peds
Output
  # A tibble: 3 x 4
    grp                     n percent     rate
    <fct>               <int>   <dbl>    <dbl>
  1 Hispanic/Latino     14006  0.701   0.515  
  2 Not Hispanic/Latino  1964  0.0982  0.00955
  3 Missing              4020  0.201  NA


jesse-smith/covidReport documentation built on Aug. 3, 2024, 4:52 p.m.