Skip to contents

Retrieves JRF data from the shared drive. NOTE: Only works for 2021 or later versions.

Usage

get_jrf(version_date, source = "admin", guids = FALSE)

Arguments

version_date

A string in the format of "yyyy-mm-dd", corresponding to the version of the JRF file you wish to load.

source

A string used to determine which format of JRF file to load. Options are: "admin" (default), "official", "system.", and "subnational".

guids

Use TRUE if you want a file with GUIDs. Only relevant for subnational data.

Value

a JRF data frame.

Examples


get_jrf("2022-08-03")
#> Reading in JRF Admin file dated: 2022-08-03
#> Warning: cannot open compressed file 'C:/Users//Gavi/Measurement, Evaluation and Learning - Documents/CPMM/Datasets/Coverage/JRF/Admin/2022/outputs/jrf_admin_2022-08-03.rds', probable reason 'No such file or directory'
#> Error in gzfile(file, "rb"): cannot open the connection

get_jrf("2022-09-02", "subnational", guids = TRUE)
#> Reading in JRF Subnational file dated: 2022-09-02
#> Warning: cannot open compressed file 'C:/Users//Gavi/Measurement, Evaluation and Learning - Documents/CPMM/Datasets/Coverage/JRF/Subnational/2022/outputs/jrf_subnational_GUIDS_2022-09-02.rds', probable reason 'No such file or directory'
#> Error in gzfile(file, "rb"): cannot open the connection

# to dynamically always pull most recent file
get_jrf(get_jrf_dates("official", latest = TRUE), "official")
#> Warning: no non-missing arguments, returning NA
#> Reading in JRF Official file dated: NA
#> Warning: cannot open compressed file 'C:/Users//Gavi/Measurement, Evaluation and Learning - Documents/CPMM/Datasets/Coverage/JRF/Official/NA/outputs/official_jrf_NA.rds', probable reason 'No such file or directory'
#> Error in gzfile(file, "rb"): cannot open the connection