Calculate OxCGRT index or indices
calculate_indices(df)
| df | A data.frame produced by a call to |
|---|
A tibble calculated OxCGRT indices
Ernest Guevarra
## 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