Covid19R Project Data Format

The refresh_coronavirus_jhu function enables to pull the coronavirus dataset using the Covid19R project data format standard. This data format includes the following fields:

library(coronavirus)

covid19_df <- refresh_coronavirus_jhu()

head(covid19_df)
#>         date    location location_type location_code location_code_type
#> 1 2020-01-25 Afghanistan       country            AF         iso_3166_2
#> 2 2020-03-25 Afghanistan       country            AF         iso_3166_2
#> 3 2020-01-24 Afghanistan       country            AF         iso_3166_2
#> 4 2020-01-23 Afghanistan       country            AF         iso_3166_2
#> 5 2020-09-26 Afghanistan       country            AF         iso_3166_2
#> 6 2020-09-25 Afghanistan       country            AF         iso_3166_2
#>    data_type value      lat     long
#> 1  cases_new     0 33.93911 67.70995
#> 2 deaths_new     1 33.93911 67.70995
#> 3  cases_new     0 33.93911 67.70995
#> 4  cases_new     0 33.93911 67.70995
#> 5 deaths_new     2 33.93911 67.70995
#> 6 deaths_new     0 33.93911 67.70995