# NOT RUN {
calculate_subindex(indicator_code = indicatorData$indicator[1],
value = indicatorData$value[1],
flag_value = indicatorData$flag_value[1])
x <- get_data(json = get_json_actions(ccode = "AFG",
from = NULL,
to = "2020-09-01"))
calculate_subindices(df = x$policyActions)
# }
Run the code above in your browser using DataLab