get_gho_data: Returns GHO Data

Description Usage Arguments Details Value Examples

View source: R/get_data.R

Description

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

Usage

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

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.

Value

A data_frame.

Examples

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

pierucci/rgho documentation built on May 25, 2019, 7:11 a.m.