-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
covid19.data case = "aggregated" data issue #6
Comments
Hi Cliff, Many thanks for reporting this! I have seen different variations around this type of issues and why I decided to add a few fns to determine integrity/consistency checks -- data.checks, consistency.check, integrity.check -- but not decided to "tamper" with the data but just instead let the user know and make it aware of it.
Best, |
Added new features to the integrity.check and consistency.check functions, including a new argument "disclose" which will make the functions report the entries where problems have been detected; e.g. negative cumulative quantities or negative values in reported number of cases. Added a new function nullify.data() which will remove the "spurious" cases. So far these changes are available on the development version. |
Running:
covid_data_agg_wide <- covid19.data(case = "aggregated", local.data = FALSE, debrief = FALSE)
results in a mistake illustrated by this record The US Recovered data is returned:
FIPS: NA
Province_State: Recovered
Country_Region: US
2020-08-10 04:34:55
Recovered: 1656864
Active: -2458499
Combined_Key: Recovered, US
The text was updated successfully, but these errors were encountered: