Description Usage Arguments Details Value Examples
Initialize the Afrobarometer data directory for the session.
1 |
path |
a string containing the file path to set as the Afrobarometer data directory
|
Sets the options the Afrobarometer data directory: afrobarometer.data.
This directory is where raw and merged data is cached across sessions. afrb_dir(path)
creates the following subdirectories:
codebooksCodebooks (PDF) for each round are downloaded and stored in path/codebooks.
locationsAfrobarometer restricted access georeferenced data (CSV) should be stored in
path/locations. The user is expected to manually place each CSV file of georeferenced
data in locations like path/locations/Location_R*.csv.
questionnairesAfrobarometer survey questionnaires (SAS) are downloaded and stored in path/questionnaires.
Sets the Afrobarometer data directory and invisibly returns the path to the directory as a string.
1 2 | library(afrobarometer)
afrb_dir("~/foo")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.