This is an R package that provides versioned time series data for COVID-19 from the JHU data repository at https://github.com/CSSEGISandData/COVID-19/tree/master/csse_covid_19_data/csse_covid_19_time_series.
For this package to be useful, you will need to clone it and install it from your local copy after you have updated the data.
To clone the repository, in a terminal you can run git clone https://github.com/reichlab/covidData.git
You will need R 3.x or 4.x
We recommend using make
to simplify the updating of data. However, some Windows operating systems do not allow for easy use of the command make
, so manual installation should be used if make
does not work.
To use make
, you must complete the following steps once you have cloned the repository:
- In a terminal/shell window, navigate to
code/data-processing
. - Run
make all
. (This runs the steps below.)
Note: If you want to only download the most recent JHU data files, for step 2. instead run make recent_data
If make does not work for you, you may run the following steps by hand. To update the data, please:
- Clone the repository. If you have previously installed covidData from an existing local clone, pull any updates to the package by running
git pull origin master
from the terminal, with the repository folder as your working directory. - Run
R CMD INSTALL covidData
from the terminal
*The names of locations included on the Website correspond with the official designations used by the U.S. Department of State. The presentation of material therein does not imply the expression of any opinion whatsoever on the part of JHU concerning the legal status of any country, area or territory or of its authorities. The depiction and use of boundaries, geographic names and related data shown on maps and included in lists, tables, documents, and databases on this website are not warranted to be error free nor do they necessarily imply official endorsement or acceptance by JHU.