Package 'rgho'

Title: Access WHO Global Health Observatory Data from R
Description: Access WHO Global Health Observatory (<https://www.who.int/data/gho/>) data from R via the `OData` API (<https://www.who.int/data/gho/info/gho-odata-api>), an application program interface providing a simple query interface to the World Health Organization's data and statistics content.
Authors: Kevin Zarca [aut, cre], Antoine Filipovic-Pierucci [aut], Assistance Publique - Hôpitaux de Paris [cph]
Maintainer: Kevin Zarca <[email protected]>
License: GPL (>= 3)
Version: 3.0.2.9000
Built: 2024-11-11 05:50:35 UTC
Source: https://github.com/aphp/rgho

Help Index


Returns GHO Data

Description

Given a code, returns the corresponding GHO data.

Usage

get_gho_data(code, filter = NULL)

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

Value

A GHO object

Examples

## Not run: 
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)

## End(Not run)

rgho: Access WHO Global Health Observatory Data From R

Description

Access WHO Global Health Observatory data from R via the OData API, an application program interface providing a simple query interface to the World Health Organization's data and statistics content.


Search Codes or Dimensions Labels

Description

Search Codes or Dimensions Labels

Usage

search_gho(gho, x)

search_dimensions(x)

search_values(x, dimension = "GHO")

Arguments

gho

An object from get_gho_dimensions or get_gho_values.

x

A character string to find in GHO labels.

dimension

A GHO dimension where codes will be searched.

Value

A GHO object

Examples

search_values("neonatal", dimension = "GHO")

result <- get_gho_values(dimension = "REGION")
search_gho(result, "asia")