Survey, laboratory, and geographic data for the Baseline_Endline study (Tanzania — ward/village spatial data, combined baseline/endline + lab measurements).
data/
raw/ source inputs, never modified (.dta, shapefile zips)
processed/ generated outputs (geocoding results)
scripts/ R analysis/geocoding scripts
utilities/ supporting artifacts (caches, logs)
Packages are managed by renv and pinned in
renv.lock. On a fresh clone, install them once:
Rscript -e 'renv::restore()'Scripts resolve the project root with here::here(), so they work from any
directory — but run them from the project root so renv activates:
Rscript scripts/village_geocode.R # geocode villages (Nominatim + Photon)
Rscript scripts/make_village_coords.R # slim coords CSV from the geocoded outputTo include Google geocoding, set an API key:
GOOGLE_MAPS_API_KEY=... Rscript scripts/village_geocode.RSee CLAUDE.md for data-file details, the ward-vs-village shapefile caveat, per-script outputs, and key variables to explore first.