Description Usage Arguments Value Examples
Assign Dhaka north or south corporation identifiers to the dataset from Bangladesh
1 2 3 4 5 | assign_bgd_corp(
indicators,
corporations,
crs = "+proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0"
)
|
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. |
A character vector with length equal to indicators
specifying
location of data (i.e., "North City Corporation", "South City Corporation",
"Outside")
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.