Retrieve Survey data
get_survey.Rd
Retrieves Survey data from the shared drive. NOTE: Only works for 2021 or later versions.
Arguments
- version_date
A string in the format of "yyyy-mm", corresponding to the version of the survey file you wish to load.
- source
A string used to determine which survey file to load. Options are: "national" and "equity".
Examples
get_survey("2022-08")
#> Reading in National Survey file dated: 2022-08
#> Warning: cannot open compressed file 'C:/Users//Gavi/Measurement, Evaluation and Learning - Documents/CPMM/Datasets/Coverage/Survey/Database/2022-08/outputs/survey_long_2022-08.rds', probable reason 'No such file or directory'
#> Error in gzfile(file, "rb"): cannot open the connection
get_survey("2022-08", source = "equity")
#> Reading in Equity Survey file dated: 2022-08
#> Warning: cannot open compressed file 'C:/Users//Gavi/Measurement, Evaluation and Learning - Documents/CPMM/Datasets/Coverage/Survey/Database/2022-08/outputs/survey_equity_2022-08.rds', probable reason 'No such file or directory'
#> Error in gzfile(file, "rb"): cannot open the connection