Data repository for COVID-19 data in Cambridge, MA area. Raw files from original
sources (listed below) are in the data-raw/
directory. Scripts and processed
data in the roadmap.
The process is automated-ish using R drake
.
To install dependencies, run renv::restore()
.
To update data, run r_make()
. Actually need to double-check that this will
download the latest files...
Processed data is in the data/
directory. Preliminary plan is to follow the
structure of the covidtracking API.
Calculated variables:
7d
, are all 7-day means (multiply by 7 for weekly counts
when desired)d[OriginalVariable]7d
Update: After looking into this a little more, https://covidtracking.com is probably the best source for US and state data. They have an API, and for MA the numbers from the daily dashboard match. NB - positivity rate does not appear to be calculable using the Covid Tracking data; - also, the MA daily dashboard reports new confirmed cases, which would need to be constructed by diffing the cumulatives.
Doesn't look like there's easy automated access, especially for historical data.
Github repos:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.