Goal: The objective of this research project is to explore inequality in air pollution monitoring and exposure across different socioeconomic groups. It focuses on data management, processing, and analysis related to air quality in various Latin American metropolitan areas.
- Motivation: Many low- and middle-income regions face disproportionate burdens of air pollution. This project aims to identify patterns of inequality by linking socioeconomic indicators with air quality data.
- Main Tasks:
- Collect and process air pollution data (satellite-derived or ground-level monitoring).
- Integrate socioeconomic variables (e.g., income levels, population density).
- Generate reproducible analyses of inequalities in air pollution exposure.
- Visualize results and produce tables/figures for publication or policy briefs.
This work is conducted in collaboration with the Inter-American Development Bank (IDB).
Here is a brief outline of the key folders and files in this repository:
``` |-- .dockerignore |-- .git |-- .gitignore |-- .Rprofile |-- .Rproj.user/ |-- Coding.Rproj |-- data/ | |-- (raw and processed data files) |-- doc/ | |-- (documentation, references, PDFs) |-- Dockerfile |-- renv/ | |-- (local project library managed by renv) |-- renv.lock |-- results/ | |-- figures/ | |-- tables/ |-- src/ | |-- config/ | |-- process_data/ | |-- tables_images/ ```
Brief Descriptions:
- Coding.Rproj: RStudio project file.
- data/:
- raw/: Original or unprocessed datasets (e.g., shapefiles, .nc4, .csv).
- processed/: Cleaned or aggregated data used in analysis.
- doc/: Supporting documentation, references (could be methodology notes, PDFs, README files).
- Dockerfile: Specifies the Docker image used for reproducible R environment.
- renv/ and renv.lock: R environment management (package versions).
- results/:
- figures/: Plots and graphs produced by the analysis.
- tables/: Generated summary tables or CSV outputs.
- src/:
- config/: Scripts for setting up configs or environment variables.
- process_data/: Data cleaning, transformation, or analysis scripts.
- tables_images/: Scripts to generate summary tables or figures.
```bash git clone https://github.com//.git cd ```
The project uses R (4.2+ recommended) with packages managed by renv.
System-level dependencies (like `libcurl`, `libxml2`, etc.) can be found in the Dockerfile or installed manually.
- Build the Docker image: ```bash docker build -t air-inequality:latest . ```
- Run the container with a local mount: ```bash docker run -it --rm -v $(pwd):/home/rstudio/project air-inequality:latest ```
- Inside the container, you can run scripts or launch R.
- Ensure you have R installed.
- Install renv: ```r install.packages("renv") ```
- From the project root, run: ```r renv::restore() ``` This installs the packages needed in a local project library.
- Data Preparation: Place raw files in `data/raw/`.
- Run Scripts:
- `src/config/`: Scripts for environment or config settings.
- `src/process_data/`: Steps to clean and merge data, e.g., `compare_monthly_country_pm.R`.
- `src/tables_images/`: Scripts generating final tables or figures.
- Results: Output (figures, tables) are stored in `results/`.
- Fork the repository and create a new branch for your feature or fix.
- Submit a pull request with a clear description of changes.
- Follow the existing code style and folder structure.
- The code is provided under the MIT License (or specify whichever license you use).
- If you use these methods or results in your work, please cite appropriately, referencing this repository or any related publications.
- Lead Researchers: (Your name or team name)
- Institution: IDB Project Team
- Email: username@example.com
For questions or further information, feel free to open an issue or contact the authors directly.
Last Update: (Month Day, Year) "