Description Arguments Value Examples
Loads the Afrobarometer dataset
round |
A number specifying which round of the Afrobarometer to load (6 by default) |
force |
A boolean specifiying whether or not to force the download of a new copy from the website (false by default) |
clean |
A boolean specifying whether or not to clean the dataset (TRUE by default) |
Returns the dataframe afro
, and sets a global integer af.round
1 2 3 4 5 6 7 8 9 10 11 | # Load the 6th round of the Afrobarometer from local file if available,
# or from the website if the local file does not exist
af_load()
# Download and load the 5th round of the Afrobarometer, ignoring and
# overwriting any local files that exist
af_load(5, force=T)
# Download and load the 3rd round of the Afrobarometer, ignoring and
# overwriting any local files that exist, do not automatically clean
af_load(5, force=T, clean=F)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.