epiforecasts / covidregionaldata

An interface to subnational and national level COVID-19 data. For all countries supported, this includes a daily time-series of cases. Wherever available we also provide data on deaths, hospitalisations, and tests. National level data is also supported using a range of data sources as well as linelist data and links to intervention data sets.
https://epiforecasts.io/covidregionaldata/
Other
37 stars 18 forks source link

Proposed fix for Mexico level 2 region problem #119 #301

Closed RichardMN closed 3 years ago

RichardMN commented 3 years ago

I think this fixes the final glitch with Mexico data in #119

I've pulled an old version of mexico_codes.csv forward to restore region joining. I have renamed two of the columns to match the new variable names.

There is some slight edit in Mexico.R but this could be done without.

The code in data-raw/mexico_codes.R is obsolete and shouldn't be run. It could be updated to match the existing functions in the rest of the package but I think it may be worth refactoring it so it doesn't depend on other parts of the package (which depend on its output).