Learn R Programming

rgho (version 2.0.2)

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, ...)

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 https://apps.who.int/gho/data/node.resources.api.

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
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