get_data_action: Get policy actions data from JSON

View source: R/get_data.R

get_data_actionR Documentation

Get policy actions data from JSON

Description

Get policy actions data from JSON

Usage

get_data_action(json)

get_data_actions(json)

Arguments

json

A JSON string, URL or file created using get_json_actions() or a vector of JSON strings or URLs.

Value

A tibble of policy actions with their respective policy values for specified country/countries and specified date/dates.

Examples

## Get relevant JSON for Afghanistan on 16 July 2020
x <- get_json_actions(ccode = "AFG", from = NULL, to = "2020-07-16")

## Get data on policy actions
get_data_action(x)

## Get relevant JSON for Afghanistan and Philippines for whole month of
## October
x <- get_json_actions(ccode = c("AFG", "PH"),
                      from = "2020-10-29",
                      to = "2020-10-30")

## Get data on policy actions
get_data_actions(x)


como-ph/oxcgrt documentation built on April 7, 2022, 9:27 a.m.