This functions pulls global deaths 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_deaths_daily()

Value

A dataframe/tibble

Details

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_deaths_global.csv

Examples

deaths <- R.COVID.19::global_deaths_daily()
#> Parsed with column specification: #> cols( #> .default = col_double(), #> `Province/State` = col_character(), #> `Country/Region` = col_character() #> )
#> See spec(...) for full column specifications.
head(deaths)
#> # A tibble: 6 x 6 #> `Province/State` `Country/Region` Lat Long greg_d deaths_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