epiforecasts / NCoVUtils

Utility functions for the 2019-NCoV outbreak
https://epiforecasts.io/NCoVUtils/
Other
27 stars 13 forks source link

Tessella Updates/Standardisation #108

Closed Jonnie-Bevan closed 4 years ago

Jonnie-Bevan commented 4 years ago

DO NOT MERGE This is a draft PR to demonstrate the changes I've made. The plan is to move this to a new, separate repository soon.

Major changes

  1. Introduced new data standard

    • data for all combinations of region and date;
    • new and cumulative cases/deaths/hospitalisations/recoveries/tests OR simple totals for each region
  2. Added three wrappers: a) get_totals_only_regional_covid_data("country_name"), b) get_wide_format_regional_covid_data("country_name"), c) get_long_format_regional_covid_data("country_name")

    • Each function uses get_regional_covid_data("country_name") to do majority of cleaning and functionality
    • This delegates to a lower level function (one per country) which handles raw data collection and country-specific data cleaning
    • Introduced lower-level helper functions to help with unit testing and make code simpler to follow
  3. Added ISO-3166-2 codes for each region

  4. Standardised unit tests

  5. Removed a few unnecessary files

I have currently completed this process for

To Do