Get Total Cases by Country

get_total_cases(source = "WHO")

Arguments

source

Character String specifying data source for total cases "WHO", "ECDC", default: "WHO".

Value

Returns a data frame of variables along with their most recent value.

Examples

## Total cases sourced from the WHO get_total_cases(source = "WHO")
#> Warning: 'autostart' is now deprecated and ignored. Consider skip='string' or skip=n
#> Warning: The `x` argument of `as_tibble.matrix()` must have column names if `.name_repair` is omitted as of tibble 2.0.0. #> Using compatibility `.name_repair`. #> This warning is displayed once every 8 hours. #> Call `lifecycle::last_warnings()` to see where this warning was generated.
#> # A tibble: 260 x 2 #> country cases #> <chr> <dbl> #> 1 UnitedStatesofAmerica 751273 #> 2 Spain 200210 #> 3 Italy 181228 #> 4 Germany 143457 #> 5 UnitedKingdom 124747 #> 6 France 113513 #> 7 Turkey 90980 #> 8 China 84250 #> 9 Iran 83505 #> 10 RussianFederation 52763 #> # … with 250 more rows
## Total cases sourced from ECDC get_total_cases(source = "ECDC")
#> csv unavailable, trying alternative
#> # A tibble: 206 x 2 #> country cases #> <chr> <dbl> #> 1 United_States_of_America 2255119 #> 2 Brazil 1067579 #> 3 Russia 576952 #> 4 India 410461 #> 5 United_Kingdom 303635 #> 6 Peru 251338 #> 7 Spain 247023 #> 8 Italy 238423 #> 9 Chile 236748 #> 10 Iran 202584 #> # … with 196 more rows