Calculate OxCGRT index or indices

calculate_indices(df)

Arguments

df

A data.frame produced by a call to calculate_subindices().

Value

A tibble calculated OxCGRT indices

Author

Ernest Guevarra

Examples

## x <- get_data(json = get_json_actions(ccode = "AFG", from = NULL, to = "2020-09-01")) y <- calculate_subindices(df = x$policyActions) calculate_indices(df = y)
#> # A tibble: 4 x 2 #> index values #> <chr> <dbl> #> 1 Government Response Index 33.3 #> 2 Containment and Health Index 38.9 #> 3 Stringency Index 21.3 #> 4 Economic Support Index 0