Skip to contents

These help pages document the lower-level API to individually download, read, and tidy Global Fund data. For a higher-level API that works across all data sets, see:

Usage

read_gf_procurement(file_name, data_dir = Sys.getenv("DXGAP_DATADIR"))

tidy_gf_procurement(data, year = NULL)

Arguments

file_name

A string containing the name of the file to be read.

data_dir

Path containing the directory to read the data from. Defaults to the path set by the environment variable "DXGAP_DATADIR".

data

A tibble returned from the corresponding read_() function.

year

A year to filter the data by. Defaults to NULL, returning data for all years.

Value

read_gf_procurement() returns a tibble containing the data set.

tidy_gf_procurement() returns a tibble. This is a tidied version of the input tibble.

Details

The data sets currently supported from Global Fund in this package are:

  • procurement

Examples

if (FALSE) {
read_gf_procurement("gf_procurement_2023-07-26.csv")
}
if (FALSE) {
read_gf_procurement("gf_procurement_2023-07-26.csv") |>
  tidy_gf_procurement()
}