Calculate OxCGRT stringency index

calculate_stringency(df)

Arguments

df

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

Value

A numeric value for mean index scores for stringency 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_stringency(df = y)
#> [1] 21.2963