Calculate OxCGRT containment and health index

calculate_containment_health(df)

Arguments

df

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

Value

A numeric value for mean index scores for containment and health index.

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_containment_health(df = y)
#> [1] 38.88889