This repository is used for organising the creation of income inequality profiles of several European countries with EU-SILC data.
Please take the time to read this short introduction before starting with your project.
Make sure to not let plain EU-SILC data end up on GitHub!
This includes the credentials to the Ineq-Institute's database. To connect to the database use the script R/_connection.R
which requires you to input the password by hand (directly or via variable). Do no access this script from R Markdown - instead prepare your data in a separate script and store it locally in the data
folder.
Please stick with the existing folder structure and create an issue if something was not accounted for. The current structure is:
reports
: Create a subfolder (named after your country's ISO 3166 ALPHA-3 code) for files directly pertaining to your country, i.e. your report, scripts for your data, your BibTeX file, images (in img
), tables (in tables
), et cetera.R
: The folder should be used for scripts that might be helpful to your colleagues (e.g. functions for preparing or plotting data). Be sure to name these files concisely and provide some documentation for the code.data
: This folder should be used for your data and will be ignored by Git.To keep code readable and thus easy to share and verify, try to adhere to some basic rules:
_
or -
).read_csv()
or table_qsr
).c("this", 1 + 1)
).If you want to go further have a look at this short guide or the extended tidyverse style guide.
git remote add upstream https://github.com/nk027/ineq_project.git
To update your fork with changes from this main repository run: git pull upstream master
or use GitHub's online interface for pull requests.