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-10-12 05:15:07 UTC |
Source: | https://github.com/aphp/rgho |
Given a code, returns the corresponding GHO data.
get_gho_data(code, filter = NULL)
get_gho_data(code, filter = NULL)
code |
A GHO code. |
filter |
A named list of filtering parameters. Each parameter must be the correct type. |
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
A GHO
object
## 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)
## 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)
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
search_gho(gho, x) search_dimensions(x) search_values(x, dimension = "GHO")
search_gho(gho, x) search_dimensions(x) search_values(x, dimension = "GHO")
gho |
An object from |
x |
A character string to find in GHO labels. |
dimension |
A GHO dimension where codes will be searched. |
A GHO
object
search_values("neonatal", dimension = "GHO") result <- get_gho_values(dimension = "REGION") search_gho(result, "asia")
search_values("neonatal", dimension = "GHO") result <- get_gho_values(dimension = "REGION") search_gho(result, "asia")