Calculate OxCGRT stringency index
calculate_stringency(df)
| df | A data.frame produced by a call to |
|---|
A numeric value for mean index scores for stringency index.
Ernest Guevarra
x <- get_data(json = get_json_actions(ccode = "AFG", from = NULL, to = "2020-09-01")) y <- calculate_subindices(df = x$policyActions) calculate_stringency(df = y)#> [1] 21.2963