Learn R Programming

rgho (version 0.2.3)

get_gho_data_: Returns GHO Data

Description

Given a dimension and a code, returns the corresponding GHO data.

Usage

get_gho_data_(code, dimension = "GHO", filter = NULL, ...)
get_gho_data(code, dimension = "GHO", filter = NULL, ...)

Arguments

code
A GHO code.
dimension
A GHO dimension.
filter
A named list of filtering parameters (see details).
...
Additional query parameters (see details).

Value

A data_frame.

Details

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

Query parameters follow the specification described on the WHO website http://apps.who.int/gho/data/node.resources.api.

Examples

Run this code

result <- get_gho_data(
  dimension = "GHO",
  code = "MDG_0000000001"
)
print(result, width = Inf)


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

Run the code above in your browser using DataLab