getDataCOVID {genSEIR} | R Documentation |
Get COVID-19 Data
Description
The function collects the updated COVID-19 data from the John Hopkins University.
Usage
getDataCOVID(country, start = NULL, finish = NULL)
Arguments
country |
name of the country. It should be a character string. |
start |
a start date in mm/dd/yy format. Start date can not be earlier than 01/22/20. Start date can not be later than finish date. If start date is |
finish |
a finish date in mm/dd/yy format. Finish date can not be earlier than start date. If finish date is |
Value
a list of COVID-19 historical data including confirmed, death and recovered cases in desired time ranges.
Author(s)
Selcuk Korkmaz, selcukorkmaz@gmail.com
References
Peng, L., Yang, W., Zhang, D., Zhuge, C., Hong, L. 2020. “Epidemic analysis of COVID-19 in China by dynamical modeling”, arXiv preprint arXiv:2002.06563.
See Also
Examples
covidData = getDataCOVID(country = "Italy",
start = "05/01/20",
finish = "12/31/20")
recovered = covidData$tableRecovered
deaths = covidData$tableDeaths
confirmed = covidData$tableConfirmed