UCD-SERG / serocalculator

Estimating Infection Rates from Serological Data
https://ucd-serg.github.io/serocalculator/
4 stars 2 forks source link

simplify `summary.pop_data()` and associated tests #171

Closed d-morrison closed 4 months ago

d-morrison commented 4 months ago

@chrisorwa I noticed that summary.pop_data() was producing incorrect results in your add-group_by-option-to-summary branch (see before/after screenshots below), so I went in and corrected it. Please review my changes line-by-line as well as the GitHub comments that I wrote, explaining some of the details. Going forward, please use the "snapshot" system for testing functions with complicated outputs: https://r-pkgs.org/testing-basics.html#sec-snapshot-tests