getMergedData: getMergedData

Description Usage Arguments Value Examples

Description

Gets a marged dataset for a given round. The default value is round 1.

Usage

1
getMergedData(roundNumber = 1)

Arguments

roundNumber

An integer to indicate the round from which you are getting the data

Value

A dataframe with rows converted into their numeric values from the survey codebook. Please work with the codebook

Examples

1
2
3
4
5
6
#Extracting a column to check what citizens think about their freedom of expression
merged5 <- getMergedData(roundNumber = 5)
expression_freedom <- merged5 %>% dplyr::select(Q17A) %>%
 dplyr::mutate(express_freedom = Q17A) %>%
 dplyr::select(express_freedom)
str(expression_freedom)

AbdouSeck/AfroData documentation built on May 5, 2019, 11:43 a.m.