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.
-
Sign up for a username at afrobarometer.org. The Afrobarometer data is free to use, but requires a login to download. See the Data Use Policy before using the data.
-
Copy
afrobarometer-example.yml
toafrobarometer.yml
. Edit Edit theuser
andpassword
fields to your Afrobarometer username and password. -
Install R dependencies
devtools::install(".")
-
Build it
$ make
Running the build script saves an R object with the combined dataset as data/afrobarometer.rds
:
You can load this data using:
afrobarometer <- readRDS("data/afrobarometer.rds")
All code is MIT licensed.
See the Afrobarometer Data Use Policy for the copyright on the Afrobarometer data.