-
Notifications
You must be signed in to change notification settings - Fork 1
/
README.Rmd
67 lines (48 loc) · 1.68 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# ripc
<!-- badges: start -->
[![R-CMD-check](https://github.com/OCHA-DAP/ripc/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/OCHA-DAP/ripc/actions/workflows/R-CMD-check.yaml)
[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental)
<!-- badges: end -->
The goal of ripc is to provide access to [Integrated Food Security Phase
Classification](https://www.ipcinfo.org) (IPC) and
[Cadre Harmonisé](https://www.ipcinfo.org/ch/) (CH) data.
## Installation
You can install the ripc from CRAN:
```r
install.packages("ripc")
```
The development version can be installed from GitHub:
``` r
# install.packages("remotes")
remotes::install_github("OCHA-DAP/ripc")
```
## Usage
ripc provides functionality to access IPC data stored directly on the
[IPC-CH Public API](https://docs.api.ipcinfo.org). There are a wider set of
functions detailed further below, but most users will get the information they
need from the `ipc_get_population()` function which returns datasets of
country-level, group-level, and area-level analyses in a list.
```{r download, message = FALSE}
library(ripc)
df_list <- ipc_get_population()
df_list$country
```
More details on the API are available below.
## IPC API
```{r child="vignettes/ipc-api.Rmd"}
```
## Help and issues
For any help, please file an issue on
[Github](https://github.com/OCHA-DAP/ripc/issues).