afrb_dir: Set the Afrobarometer data directory

Description Usage Arguments Details Value Examples

View source: R/afrb-dir.R

Description

Initialize the Afrobarometer data directory for the session.

Usage

1
afrb_dir(path = tempdir())

Arguments

path

a string containing the file path to set as the Afrobarometer data directory getOptions("afrobarometer.data")). Run afrb_dir() without any parameters to use path = base::tempdir().

Details

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:

Value

Sets the Afrobarometer data directory and invisibly returns the path to the directory as a string.

Examples

1
2

sboysel/afrobarometer documentation built on May 29, 2019, 3:24 p.m.