Access WHO Global Health Observatory Data from R

Access WHO Global Health Observatory (< http://www.who.int/gho/>) data from R via the Athena web service (< http://apps.who.int/gho/data/node.resources.api>), an application program interface providing a simple query interface to the World Health Organization's data and statistics content.


rgho is an R package to access WHO GHO data from R via the Athena web service, an API providing a simple query interface to the World Health Organization's data and statistics content.

You can install:

  • the latest released version from CRAN with:
install.packages("rgho")
  • the latest development version from github with:
devtools::install_github("pierucci/rgho@devel")
  • List available dimensions and codes with get_gho_dimensions() and get_gho_codes().
  • Download data with get_gho_data().
  • Introduction in vignette("a-intro", "rgho").
  • List of GHO dimensions in vignette("b-dimensions", "rgho").
  • List of codes for the GHO dimension in vignette("c-codes-gho", "rgho").
  • List of codes for the COUNTRY dimension in vignette("d-country", "rgho").
  • Details about how requests are performed in vignette("e-details", "rgho").

Antoine Filipović-Pierucci.

News

rgho 1.0.0

  • Proxy settings are now handled through an rgho.http_proxy option.
  • Renamed functions:
    • filter_attrs() => filter_gho().
    • values_attrs() => display_attribute_values().
  • Created function display_attributes().
  • Careful reintroduction of unit testing.

rgho 0.2.3

  • Removed test suite until we figure out a way to avoid breaking the build every time the GHO database is updated.

rgho 0.2.2

  • get_gho_data() no longer memoised.
  • Filtering tests do not fail when new codes are added.
  • Correctly use proxy settings.

rgho 0.2.1

  • Test do not fail when new codes are added.
  • verbose and retry can now be set by options().
  • Memoise results for a limited time (1h by default).
  • Technical details are explained in a vignette.
  • Package switched from XML to json.
  • Tests do not fail when new codes are added.

rgho 0.2.0

  • Fix encoding problem with country names.
  • New COUNTRY vignette.
  • Tests written.
  • More robust get_gho() & build_url() functions.
  • Fixed bug where get_gho() would not retry a failed request.
  • Try to follow API best practices.
  • New function: values_attrs().

rgho 0.1.0

  • Fix bugs when handling empty data.
  • Fix problems with tidyr update.
  • More robust http get.
  • Optional debug mode.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("rgho")

1.0.1 by Antoine Filipovic-Pierucci, 10 months ago


https://github.com/pierucci/rgho, https://pierucci.org


Report a bug at https://github.com/pierucci/rgho/issues


Browse source code at https://github.com/cran/rgho


Authors: Antoine Filipovic-Pierucci [aut,cre]


Documentation:   PDF Manual  


GPL (>= 3) license


Imports curl, dplyr, httr, jsonlite, lazyeval, magrittr, memoise, readr, tibble, tidyr

Suggests testthat, knitr, rmarkdown


Suggested by heemod.


See at CRAN