R/global_confirmed_daily.R
global_confirmed_daily.Rd
This functions pulls global confirmed COVID-19 data from John Hopkins GitHub repository downloads it and transpose it so that it is tidy. No data is stored within the package, so the data should continuously update over time as long as the links do not change.
global_confirmed_daily()
A dataframe/tibble
Website:
- https://github.com/CSSEGISandData/COVID-19
- https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_confirmed_global.csv
confirmed <- R.COVID.19::global_confirmed_daily()#>#> #> #>#>head(confirmed)#> # A tibble: 6 x 6 #> `Province/State` `Country/Region` Lat Long greg_d confirmed_cases #> <chr> <chr> <dbl> <dbl> <chr> <dbl> #> 1 NA Afghanistan 33.9 67.7 1/22/20 0 #> 2 NA Afghanistan 33.9 67.7 1/23/20 0 #> 3 NA Afghanistan 33.9 67.7 1/24/20 0 #> 4 NA Afghanistan 33.9 67.7 1/25/20 0 #> 5 NA Afghanistan 33.9 67.7 1/26/20 0 #> 6 NA Afghanistan 33.9 67.7 1/27/20 0