get_data_action: Get policy actions data from JSON

Description Usage Arguments Value Examples

View source: R/get_data.R

Description

Get policy actions data from JSON

Usage

1
2
3

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## 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-31")

## Get data on policy actions
get_data_actions(x)

oxcgrt documentation built on Nov. 27, 2020, 5:07 p.m.