getRoundData: getRoundData

Description Usage Arguments Value Examples

View source: R/Data.R

Description

Gets a dataset for a given country and round. The default value of round is 1

Usage

1
getRoundData(country, round = 1)

Arguments

country

A string character representation of the country whose round data you're looking to get.

round

The given round from which you are grabbing data. The default value is 1.

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 the level of internet usage
sen_r1 <- getRoundData(country='Senegal',round=1)
internet_usage <- sen_r1 %>% dplyr::select(Q92B) %>%
   dplyr::mutate(CellUsage = Q92B)) %>%
   dplyr::select(CellUsage)
str(internet_usage)

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