-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
39 lines (28 loc) · 1.98 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r setup, include=FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
options(tibble.print_min = 5, tibble.print_max = 5)
```
# ghost <a href='https://github.com/gpw13/ghost'><img src='man/figures/logo.png' align="right" height="139" /></a>
<!-- badges: start -->
[![R-CMD-check](https://github.com/gpw13/ghost/workflows/R-CMD-check/badge.svg)](https://github.com/gpw13/ghost/actions)
<!-- badges: end -->
## Overview
ghost is an R package designed to provide a simple interface for extracting data from the World Health Organization's Global Health Observatory (GHO) database using the [Open Data Protocol API](https://www.who.int/data/gho/info/gho-odata-api). The package allows for exploration of indicators and dimensions available in the GHO and extract of these into R data frames.
* `gho_indicators()` provides a data frame of all available [indicators](https://www.who.int/data/gho/info/gho-odata-api#exe3) in the GHO.
* `gho_dimensions()` provides a data frame of all available [dimensions](https://www.who.int/data/gho/info/gho-odata-api#exe1) in the GHO.
* `gho_dimension_values()` provides a data frame of all available [values for a single dimension](https://www.who.int/data/gho/info/gho-odata-api#exe2) in the GHO.
* `gho_data()` extracts data from a selection of indicators in the GHO and outputs all results in a single data frame.
The interface is designed to be as simple as possible, only requiring input of the code of an indicator to extract it. However, it is also compatible with using more complex queries in line with the OData protocol. Details on its implementation available in the [OData documentation](https://www.odata.org/documentation/odata-version-2-0/uri-conventions/).
ghost can be installed using `remotes::install_github("gpw13/ghost")`
## Usage
```{r child = "vignettes/ghost_usage.Rmd"}
```