Description Usage Arguments Value Examples
Returns whether or not a question, or vector of questions, exists in the dataset
1 | af_contains(afro, question)
|
afro |
A dataframe containing Afrobarometer data |
question |
A vector of questions |
A single boolean that is TRUE only if all questions exist in the dataset
1 2 3 4 5 | # Check to see if question 5 exists
afro %>% af_contains("q5")
#' # Check to see if questions 5 and 30 exist
afro %>% af_contains(c("q5", "q30"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.