Open seabbs opened 3 years ago
I'd not looked at these from the user point of view. From your reprex it looks as though it could be fairly straightforward to make something like a wrapper or catcher, or a pair. My general use is to just call get_regional_data
for a specific country.
We could have something which would do try_regional_data
which would check if there was already a dedicated class, and failing that, see if JHU or google had regional data available for the country, and then wrap up the response to do the get
, filter
and process
.
Similarly we could have survey_available_regional_data
which could provide get_available_data
then poll JHU and google to see what countries are currently providing regional data (possibly with a check for freshness) and provide a table of countries where regional data is available.
Turning that around, having done the survey, a user could then call try_regional_data
to get the regional data without having to think (too much) about where the data is coming from (though some source field should probably be populated).
All the names are just sketches, of course.
This issue has been flagged as stale due to lack of activity
Really like both these ideas Richard, especially the polling of meta-sources. I see the draft PR so will move over there for more comments!
This issue has been flagged as stale due to lack of activity
This issue has been flagged as stale due to lack of activity
At the moment it is a little clunky, tedious and a bit opaque to access the regional data imported using the JHU and Google wrappers. It would be really nice to improve access to this data on the same level as other data sources. One of the current issues is discoverability as we don't broadcast to users what the JHU/Google support until they access those classes and these don't work via
get_available_data
or viaget_regional_data
. It is also very slow to clean and processs these big data sets which is a large waste of time if only interested in a single region.This can be done in several ways:
Personally, I think manually adding using the JHU/Google integrations is probably the way to go in terms of giving the best documentation and ease of use.
Tagging for discussions @epiforecasts/covidregionaldata @Bisaloo (appreciate your thoughts). I am happy to look at how to do this but it might take a while so also very happy for anyone else interested to have crack.
Example of accessing the data for a JHU supported region and Google supported region
Created on 2021-08-06 by the reprex package (v2.0.0)
Example for a fully supported country:
Created on 2021-08-06 by the reprex package (v2.0.0)