Closed joseph-palmer closed 3 years ago
👋 Thanks for opening this pull request! Can you please run through the following checklist before requesting review (ticking as complete or if not relevant).
devtools::load_all(); devtools::test()
) first setting options(testDownload=TRUE, testSource=class-name)
and report your findings. devtools::load_all(); devtools::test()
). Thank you again for the contribution. If making large scale changes consider using our pre-commit
hooks (see the contributing guide) to more easily comply with our guidelines.
This PR adds a
Covid19DataHub
class which pulls and cleans data from Covid19 Data hub, specifically files marked as raw data (https://covid19datahub.io/articles/data.html).rawdata-1
,rawdata-2
andrawdata-3
get level 1 (country) level 2 (region) and level 3 (subregion) data respectively.The data collected runs through our generic cleaning and processing steps (of course with cleaning selecting and aligning the correct columns for this process).
The names of regions perhapse need changing and region codes are a little odd. ATM
iso_alpha_3
is used for country,iso_level_2
is used for region andiso_numeric
is used for subregions. Perhapse we could link these with the codes Google uses in their dataset?