Skip to content

jrnold/afrobarometer

Repository files navigation

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. The Afrobarometer data is free to use, but requires a login to download. See the 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

    devtools::install(".")
  4. Build it

    $ make

Usage

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")

LICENSE

All code is MIT licensed.

See the Afrobarometer Data Use Policy for the copyright on the Afrobarometer data.

About

R scripts to clean and merge Afrobarometer survey data across rounds

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published