UrbanInstitute / education-data-package-r

https://urbaninstitute.github.io/education-data-package-r/
Other
86 stars 11 forks source link

Schools CCD Directory filter not working some years #87

Open jakedwinfield opened 3 years ago

jakedwinfield commented 3 years ago

When running get_education_data for ccd data at the school level, I can't get the filter to run for 2017 or 2018, but it will work for other years (like 2015)

This code runs: df <- get_education_data(level = 'schools', source = 'ccd', topic = 'directory', filters = list(year = 2015))

This code returns an error: df<- get_education_data(level = 'schools', source = 'ccd', topic = 'directory', filters = list(year = 2017))

Error Message: Error: Query page not found. Please double-check your arguments (especially filters). Consider filing an issue with the development team if this issue persists

khueyama commented 3 years ago

@jakedwinfield sorry that you are having issues accessing the API data. We're trying to track down the root cause, which is a bit tricky since it seems to occur somewhat at random. If you are trying to pull all the ccd directory data, you can try using the csv option, which should be faster and not run into the same issues:

df<- get_education_data(level = 'schools',
                        source = 'ccd',
                        topic = 'directory',
                        csv = TRUE)

Hope this helps in the interim.