A quick and easy way to generate summary statistics from survey data collected using Kobo / ODK
Report Bug
·
Request Feature
This repository was created for REACH YEMEN mission to speed up the process of generating summary statistics for the different RCs. The input files needed to run the script are the kobo tool (questions and choices sheets) and the cleaned dataset.
0. Prerequisite: git
Git should be installed on your system, if that's not the case, follow this link for download and installation guide.
1. Clone the repo
From Windows CMD or Linux terminal (for geeks):
git clone https://github.com/lilos404/analysis_generator.git
Using RStudio:
Click on File menu ==> New Project ==> Version Control ==> Git == > Paste the repo link in the Repository URL field and specify where to download the project
2. Install the required packages
This is a one time setup, run the following time after you download the project for the first time.
source("./src/0_install_dependencies.R")
3. Prepare your dataset
Modify "1_data_preparation.R" script according to your needs. The script has multiple useful code chunks that you can use to prepare the data set before running the analysis. To use one of the sections, uncomment it using ctrl+shift+c or remove the leading "#" in each line.
4. Run the analysis and enjoy
In "2_run_analysis.R" fill in the required parameters (dataset path, language of the export ... ) and run the rest of the code. If you face any issues while running the script send me a message on Skype/Teams (For urgent requests bring me chocolate or nuts).
To contribute to this project, please fork the repo and create a pull request.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/NewFeature
) - Commit your Changes (
git commit -m 'Add some NewFeature'
) - Push to the Branch (
git push origin feature/NewFeature
) - Open a Pull Request
Assil BEN AMOR - [email protected]