Learn R Programming

rgho (version 3.0.2)

get_gho_data: Returns GHO Data

Description

Given a code, returns the corresponding GHO data.

Usage

get_gho_data(code, filter = NULL)

Value

A GHO object

Arguments

code

A GHO code.

filter

A named list of filtering parameters. Each parameter must be the correct type.

Details

Filtering parameters are given as a named list of the form list(COUNTRY = "FRA", ...).

If you mispecify the filtering parameter, you will get a 400 Bad Request Error

Examples

Run this code

if (FALSE) {
result <- get_gho_data(
  code = "MDG_0000000001"
)
print(result, width = Inf)


result <- get_gho_data(
  code = "MDG_0000000001",
  filter = list(
    REGION = "EUR",
    YEAR = 2015
  )
)
print(result, width = Inf)
}

Run the code above in your browser using DataLab