https://github.com/jrnold/afrobarometer
R scripts to clean and merge Afrobarometer survey data across rounds
https://github.com/jrnold/afrobarometer
afrobarometer surveys
Last synced: 1 day ago
JSON representation
R scripts to clean and merge Afrobarometer survey data across rounds
- Host: GitHub
- URL: https://github.com/jrnold/afrobarometer
- Owner: jrnold
- License: other
- Created: 2018-03-04T21:07:09.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-06-17T21:52:33.000Z (over 7 years ago)
- Last Synced: 2025-06-03T09:19:18.437Z (4 months ago)
- Topics: afrobarometer, surveys
- Language: R
- Homepage:
- Size: 41 KB
- Stars: 5
- Watchers: 3
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Merged Afrobarometer Data
This repository contains some R scripts that clean and merge data from
[Afrobarometer] surveys. Currently this includes only rounds 3--6 and
the variables that I have used in my work.## Build
1. Sign up for a username at [afrobarometer.org](http://afrobarometer.org/).
The Afrobarometer data is free to use, but requires a login to download.
See the [Data Use Policy](http://afrobarometer.org/data/data-use-policy)
before using the data.2. Copy `afrobarometer-example.yml` to `afrobarometer.yml`. Edit
Edit the `user` and `password` fields to your Afrobarometer username and
password.3. Install R dependencies
```r
devtools::install(".")
```3. Build it
```console
$ make
```## Usage
Running the build script saves an R object with the combined dataset as `data/afrobarometer.rds`:
You can load this data using:
```r
afrobarometer <- readRDS("data/afrobarometer.rds")
```## LICENSE
All code is MIT licensed.
See the [Afrobarometer Data Use Policy](http://www.afrobarometer.org/data/data-use-policy)
for the copyright on the Afrobarometer data.