R/calculate_index.R
calculate_containment_health.RdCalculate OxCGRT containment and health index
calculate_containment_health(df)
| df | A data.frame produced by a call to |
|---|
A numeric value for mean index scores for containment and health 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_containment_health(df = y)#> [1] 38.88889