combine_wash: Combine all WASH indicator sets

Description Usage Arguments Value Examples

View source: R/combine.R

Description

Combine all WASH indicator sets

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
combine_wash(
  admin,
  demo,
  poverty,
  water,
  sanitation,
  handwash,
  hygiene,
  overall
)

Arguments

admin

Administrative dataset

demo

Demographic indicators dataset

poverty

Poverty indicators dataset

water

Water indicators dataset

sanitation

Sanitation indicators dataset

handwash

Handwashing indicators dataset

hygiene

Hygiene indicators dataset

overall

Overall indicators dataset

Value

A data frame containing all WASH indicators

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
# apply combine_wash() to surveyDataBGD dataset

ppiMatrixBGD <- washdata::ppiMatrixBGD 

admin <- get_admin_vars(data = washdata::surveyDataBGD)
demo <- get_demo_vars(data = washdata::surveyDataBGD)
poverty <- get_poverty_vars(surveyData = washdata::surveyDataBGD, 
                            index = washdata::surveyDataBGD$ppi, 
                            ccode = "BGD",
                            ppiTable = ppitables::ppiBGD2013)
water <- get_water_vars(surveyData = washdata::surveyDataBGD)
sanitation <- get_sanitation_vars(surveyData = washdata::surveyDataBGD)
handwash <- get_handwashing_vars(surveyData = washdata::surveyDataBGD)
hygiene <- get_hygiene_vars(surveyData = washdata::surveyDataBGD)
overall <- get_overall_vars(adminDF = admin, waterDF = water, sanDF = sanitation)

indicatorsDF <- combine_wash(admin = admin, demo = demo, poverty = poverty,
                             water = water, sanitation = sanitation,
                             handwash = handwash, hygiene = hygiene,
                             overall = overall)

validmeasures/wsup documentation built on Dec. 16, 2019, 4:50 a.m.