/nz-covid19-data

Repackaging the Ministry of Health's Covid-19 data

Primary LanguageR

New Zealand Covid-19 Case Data

28 March - most of this has been made obsolete by the Ministry's release of spreahsheets - but I'll wait a few days before I clean this up as things are changing very rapidly.

This data has been quickly pulled together by the New Zealand Herald data journalism team - if you have any issues please contact Chris Knox by email chris.knox@nzherald.co.nz or via Twitter

Updated to 'Updated 5pm Thursday 26 March 2020'

  • Daily totals from Feb 28 - NA where data wasn't reported csv and excel
  • DHB totals starting March 26 csv and excel
  • Confirmed cases DHB, Age, Gender, Flight details (no information extracted), and Date csv and excel

March 26 update

The Ministry has changed to only reporting the details for confirmed cases - and to providing location data by DHB - which is an improvement on the previous ad-loc locations.

Since the data released previously was not reported by DHB there is no way to link the two. Therefore the final versions of the cases data are now in data/archive I have also copied the could used to produce those files to data/archive/archive.R

A little detail

The data is from https://www.health.govt.nz/our-work/diseases-and-conditions/covid-19-novel-coronavirus/covid-19-current-cases

The data is downloaded and cleaned up using R - all code is in _drake.R

There are a selection of files in the data directory.

I am using drake to process manage the update process - I will turn this into an R data package when I get the time.

Pull requests are very welcome.

The code is a MIT licensed and the data is under the Ministry of Health's creative commons license https://www.health.govt.nz/about-site/copyright