Data from Global Fund
gf.Rd
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:
import_tbl()
to import any data
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.