{"id":38654571,"url":"https://github.com/openwashdata/rwpfunctionality","last_synced_at":"2026-01-17T09:25:39.981Z","repository":{"id":227087619,"uuid":"770378167","full_name":"openwashdata/rwpfunctionality","owner":"openwashdata","description":"Water point monitoring data associated with the paper \"Rural water point functionality estimates and associations: evidence from nine countries in sub-Saharan Africa and South Asia\". ","archived":false,"fork":false,"pushed_at":"2024-03-26T13:48:32.000Z","size":7119,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-04T21:46:24.447Z","etag":null,"topics":["management","open-data","r","wash","water","waterpoint"],"latest_commit_sha":null,"homepage":"https://openwashdata.github.io/rwpfunctionality/","language":"TeX","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc-by-4.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openwashdata.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-03-11T12:58:40.000Z","updated_at":"2024-03-26T13:23:10.000Z","dependencies_parsed_at":"2025-04-11T22:20:23.198Z","dependency_job_id":"bf2df25c-a54c-4215-ac70-e3081da2a18f","html_url":"https://github.com/openwashdata/rwpfunctionality","commit_stats":null,"previous_names":["openwashdata/rwpfunctionality"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/openwashdata/rwpfunctionality","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openwashdata%2Frwpfunctionality","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openwashdata%2Frwpfunctionality/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openwashdata%2Frwpfunctionality/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openwashdata%2Frwpfunctionality/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openwashdata","download_url":"https://codeload.github.com/openwashdata/rwpfunctionality/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openwashdata%2Frwpfunctionality/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28505550,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T06:57:29.758Z","status":"ssl_error","status_checked_at":"2026-01-17T06:56:03.931Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["management","open-data","r","wash","water","waterpoint"],"created_at":"2026-01-17T09:25:39.841Z","updated_at":"2026-01-17T09:25:39.938Z","avatar_url":"https://github.com/openwashdata.png","language":"TeX","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\nalways_allow_html: true\neditor_options: \n  markdown: \n    wrap: 72\n  chunk_output_type: console\nbibliography: references.bib\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\n\nlibrary(tidyverse)\n```\n\n# rwpfunctionality\n\n\u003c!-- badges: start --\u003e\n[![License: CC BY 4.0](https://img.shields.io/badge/License-CC_BY_4.0-lightgrey.svg)](https://creativecommons.org/licenses/by/4.0/)\n[![R-CMD-check](https://github.com/openwashdata/rwpfunctionality/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/openwashdata/rwpfunctionality/actions/workflows/R-CMD-check.yaml)\n[![DOI](https://zenodo.org/badge/770378167.svg)](https://zenodo.org/doi/10.5281/zenodo.10878634)\n\u003c!-- badges: end --\u003e\n\nThis package offers users comprehensive documentation on surveys conducted to assess water point functionality and management committees. These surveys were carried out across nine countries in both sub-Saharan Africa and South Asia. The data was published alongside the article \"Rural water point functionality estimates and associations: evidence from nine countries in sub-Saharan Africa and South Asia\" [@murray2024rural].\n\n## Installation\n\nYou can install the development version of rwpfunctionality from [GitHub](https://github.com/) with:\n\n```r\n# install.packages(\"devtools\")\ndevtools::install_github(\"openwashdata/rwpfunctionality\")\n```\n\nAlternatively, you can download the dataset as a CSV or XLSX\nfile from the table below.\n\n```{r, echo=FALSE, message=FALSE, warning=FALSE}\n\nextdata_path \u003c- \"https://github.com/openwashdata/rwpfunctionality/raw/main/inst/extdata/\"\n\nread_csv(\"data-raw/dictionary.csv\") |\u003e \n  distinct(file_name) |\u003e \n  dplyr::mutate(file_name = str_remove(file_name, \".rda\")) |\u003e \n  dplyr::rename(dataset = file_name) |\u003e \n  mutate(\n    CSV = paste0(\"[Download CSV](\", extdata_path, dataset, \".csv)\"),\n    XLSX = paste0(\"[Download XLSX](\", extdata_path, dataset, \".xlsx)\")\n  ) |\u003e \n  knitr::kable()\n\n```\n\n## Project goal\n\nSustained functionality of rural water systems is a global challenge. Addressing premature failures and unreliable performance of water points is crucial to achieve the 2030 Sustainable Development Goal (SDG) 6, which calls for universal and equitable access to safe and affordable drinking water for all [@safely]. As of 2020, 771 million people lacked a basic water service [@nina2021progressa]. Yet even for those with water services, unreliable water infrastructure that provides intermittent supply, or is broken down or abandoned, contributes to unsustainable and unsafe water access worldwide [@allaire2018national; @burt2018intermittent; @klug2018categorization; @valcourt2020understanding].\n\n\n## Data\n\nThe dataset includes observations of water point functionality and management committee questionnaires. Displayed on the map are the locations of the water points.\n\n![](man/figures/map.png)\n\nThe package provides access to one single dataset.\n\n```{r, echo = TRUE}\nlibrary(rwpfunctionality)\n```\n\nThe `rwpfunctionality` dataset has `r ncol(rwpfunctionality)`\nvariables and `r nrow(rwpfunctionality)` observations. For an overview\nof the variable names, see the following table.\n\n```{r, eval=FALSE}\nrwpfunctionality\n```\n\n```{r, echo=FALSE, message=FALSE, warning=FALSE}\nreadr::read_csv(\"data-raw/dictionary.csv\") |\u003e \n  dplyr::filter(file_name == \"rwpfunctionality.rda\") |\u003e \n  dplyr::select(variable_name:description) |\u003e \n  knitr::kable() |\u003e \n  kableExtra::kable_styling() |\u003e \n  kableExtra::scroll_box(height = \"400px\")\n```\n\n## Examples\n\n### Pie Chart of Water Points Functionality\n\nWhat are the statuses of the water points? Are they functional?\n\n```{r, message=FALSE}\nlibrary(dplyr)\nlibrary(ggplot2)\n\n# Define custom colors\ncustom_colors \u003c- c(\"lightblue\", \"orange\", \"purple\")\n\n# Create the pie chart\nrwpfunctionality |\u003e\n  count(functional3) |\u003e \n  ggplot(aes(x = \"\", y = n, fill = functional3)) +\n  geom_bar(stat = \"identity\") +\n  coord_polar(\"y\", start = 0) +\n  scale_fill_manual(values = custom_colors) +  # Set custom colors\n  labs(title = \"Functionality rating for water points\", fill = NULL,\n       x = \"\",  # Empty x-axis label\n       y = \"Count\") +  # y-axis label\n  scale_fill_manual(labels = c(\"Functional\", \"Partially functional\", \"Abandoned or not functional\"),\n                    values = custom_colors)  # Custom legend labels\n```\nBased on this pie chart, it could be interesting to redefine the category \"Partially functional\" to gain insights and precision on this aspect of the data. However, we still clearly see that only a small part of the water points are functional.\n\n### Water Points Types\n\nWhat are the different types of water points?\n\n```{r, echo=TRUE, message=FALSE, warning=FALSE}\n# Create a horizontal bar plot of water point types\nggplot(rwpfunctionality, aes(x = wptype)) +\n  geom_bar() +\n  labs(title = \"Distribution of Water Points Types\",\n       x = \"Water Point Type\",\n       y = \"Frequency\") +\n  coord_flip()  # Flip coordinates to make it horizontal\n```\n\nThis plot provides insight into the distribution of different types of water points present in the dataset. Understanding the prevalence of each type is valuable for various purposes, such as evaluating the functionality of each type to inform future development projects. For instance, it helps identifying which types are more common and could potentially inform decisions on prioritizing maintenance or constructing more efficient or suitable water point types.\n\n## References\n\n```{html, echo = FALSE}\n\u003cdiv id=\"refs\"\u003e\u003c/div\u003e\n```\n\n## License\n\nData are available as \n[CC-BY](https://github.com/openwashdata/rwpfunctionality/LICENSE.md).\n\n## Citation\n\nTo cite this package, please use:\n\n```{r}\ncitation(\"rwpfunctionality\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenwashdata%2Frwpfunctionality","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenwashdata%2Frwpfunctionality","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenwashdata%2Frwpfunctionality/lists"}