R code for the aggregate tables and reporting components of Dimagi's internal data platform