Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Baseline_Endline study

Survey, laboratory, and geographic data for the Baseline_Endline study (Tanzania — ward/village spatial data, combined baseline/endline + lab measurements).

Layout

data/
  raw/        source inputs, never modified (.dta, shapefile zips)
  processed/  generated outputs (geocoding results)
scripts/      R analysis/geocoding scripts
utilities/    supporting artifacts (caches, logs)

Setup

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 output

To include Google geocoding, set an API key:

GOOGLE_MAPS_API_KEY=... Rscript scripts/village_geocode.R

More

See CLAUDE.md for data-file details, the ward-vs-village shapefile caveat, per-script outputs, and key variables to explore first.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages