assign_bgd_corp: Assign Dhaka north or south corporation identifiers to the...

Description Usage Arguments Value Examples

View source: R/combine.R

Description

Assign Dhaka north or south corporation identifiers to the dataset from Bangladesh

Usage

1
2
3
4
5
assign_bgd_corp(
  indicators,
  corporations,
  crs = "+proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0"
)

Arguments

indicators

A data frame of calculated indicators

corporations

A SpatialPolygonsDataFrame delineating areas of Dhaka belonging to North and South corporations.

crs

A character value specifying the coordinate reference system (CRS) to be used. Default is longlat projection datum WGS84.

Value

A character vector with length equal to indicators specifying location of data (i.e., "North City Corporation", "South City Corporation", "Outside")

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
ppiMatrixBGD <- washdata::ppiMatrixBGD

admin <- get_admin_vars(washdata::surveyDataBGD)
demo <- get_demo_vars(washdata::surveyDataBGD)
poverty <- get_poverty_vars(surveyData = washdata::surveyDataBGD, 
                            index = washdata::surveyDataBGD$ppi, 
                            ccode = "BGD",
                            ppiTable = ppitables::ppiBGD2013)
water <- get_water_vars(washdata::surveyDataBGD)
sanitation <- get_sanitation_vars(washdata::surveyDataBGD)
handwash <- get_handwashing_vars(washdata::surveyDataBGD)
hygiene <- get_hygiene_vars(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)

indicatorsDF <- assign_bgd_corp(indicators = indicatorsDF, 
                                corporations = corporations)

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