getDataCOVID: Get COVID-19 Data

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/getDataCOVID.R

Description

The function collects the updated COVID-19 data from the John Hopkins University.

Usage

1
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 NULL then start date will be 01/22/20.

finish

a finish date in mm/dd/yy format. Finish date can not be earlier than start date. If finish date is NULL then finish date will be the latest date at John-Hopkins CSSE system.

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.

https://www.mathworks.com/matlabcentral/fileexchange/74545-generalized-seir-epidemic-model-fitting-and-computation

See Also

SEIQRDP fit_SEIQRDP

Examples

1
2
3
4
5
6
covidData = getDataCOVID(country = "Italy",
                         start = "05/01/20",
                         finish = "12/31/20")
recovered = covidData$tableRecovered
deaths = covidData$tableDeaths
confirmed = covidData$tableConfirmed

genSEIR documentation built on July 12, 2021, 5:07 p.m.