rwpfunctionality
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".
Science Score: 67.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 1 DOI reference(s) in README -
✓Academic publication links
Links to: zenodo.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (14.9%) to scientific vocabulary
Keywords
management
open-data
r
wash
water
waterpoint
Last synced: 6 months ago
·
JSON representation
·
Repository
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".
Basic Info
- Host: GitHub
- Owner: openwashdata
- License: cc-by-4.0
- Language: TeX
- Default Branch: main
- Homepage: https://openwashdata.github.io/rwpfunctionality/
- Size: 6.79 MB
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Topics
management
open-data
r
wash
water
waterpoint
Created almost 2 years ago
· Last pushed almost 2 years ago
Metadata Files
Readme
License
Citation
README.Rmd
---
output: github_document
always_allow_html: true
editor_options:
markdown:
wrap: 72
chunk_output_type: console
bibliography: references.bib
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
library(tidyverse)
```
# rwpfunctionality
[](https://creativecommons.org/licenses/by/4.0/)
[](https://github.com/openwashdata/rwpfunctionality/actions/workflows/R-CMD-check.yaml)
[](https://zenodo.org/doi/10.5281/zenodo.10878634)
This 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].
## Installation
You can install the development version of rwpfunctionality from [GitHub](https://github.com/) with:
```r
# install.packages("devtools")
devtools::install_github("openwashdata/rwpfunctionality")
```
Alternatively, you can download the dataset as a CSV or XLSX
file from the table below.
```{r, echo=FALSE, message=FALSE, warning=FALSE}
extdata_path <- "https://github.com/openwashdata/rwpfunctionality/raw/main/inst/extdata/"
read_csv("data-raw/dictionary.csv") |>
distinct(file_name) |>
dplyr::mutate(file_name = str_remove(file_name, ".rda")) |>
dplyr::rename(dataset = file_name) |>
mutate(
CSV = paste0("[Download CSV](", extdata_path, dataset, ".csv)"),
XLSX = paste0("[Download XLSX](", extdata_path, dataset, ".xlsx)")
) |>
knitr::kable()
```
## Project goal
Sustained 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].
## Data
The dataset includes observations of water point functionality and management committee questionnaires. Displayed on the map are the locations of the water points.

The package provides access to one single dataset.
```{r, echo = TRUE}
library(rwpfunctionality)
```
The `rwpfunctionality` dataset has `r ncol(rwpfunctionality)`
variables and `r nrow(rwpfunctionality)` observations. For an overview
of the variable names, see the following table.
```{r, eval=FALSE}
rwpfunctionality
```
```{r, echo=FALSE, message=FALSE, warning=FALSE}
readr::read_csv("data-raw/dictionary.csv") |>
dplyr::filter(file_name == "rwpfunctionality.rda") |>
dplyr::select(variable_name:description) |>
knitr::kable() |>
kableExtra::kable_styling() |>
kableExtra::scroll_box(height = "400px")
```
## Examples
### Pie Chart of Water Points Functionality
What are the statuses of the water points? Are they functional?
```{r, message=FALSE}
library(dplyr)
library(ggplot2)
# Define custom colors
custom_colors <- c("lightblue", "orange", "purple")
# Create the pie chart
rwpfunctionality |>
count(functional3) |>
ggplot(aes(x = "", y = n, fill = functional3)) +
geom_bar(stat = "identity") +
coord_polar("y", start = 0) +
scale_fill_manual(values = custom_colors) + # Set custom colors
labs(title = "Functionality rating for water points", fill = NULL,
x = "", # Empty x-axis label
y = "Count") + # y-axis label
scale_fill_manual(labels = c("Functional", "Partially functional", "Abandoned or not functional"),
values = custom_colors) # Custom legend labels
```
Based 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.
### Water Points Types
What are the different types of water points?
```{r, echo=TRUE, message=FALSE, warning=FALSE}
# Create a horizontal bar plot of water point types
ggplot(rwpfunctionality, aes(x = wptype)) +
geom_bar() +
labs(title = "Distribution of Water Points Types",
x = "Water Point Type",
y = "Frequency") +
coord_flip() # Flip coordinates to make it horizontal
```
This 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.
## References
```{html, echo = FALSE}
```
## License
Data are available as
[CC-BY](https://github.com/openwashdata/rwpfunctionality/LICENSE.md).
## Citation
To cite this package, please use:
```{r}
citation("rwpfunctionality")
```
Owner
- Name: openwashdata
- Login: openwashdata
- Kind: organization
- Repositories: 1
- Profile: https://github.com/openwashdata
Citation (CITATION.cff)
# -----------------------------------------------------------
# CITATION file created with {cffr} R package, v1.0.0
# See also: https://docs.ropensci.org/cffr/
# -----------------------------------------------------------
cff-version: 1.2.0
message: 'To cite package "rwpfunctionality" in publications use:'
type: software
license: CC-BY-4.0
title: 'rwpfunctionality: Water point functionality assessment in nine sub-Saharan
Africa and South Asia countries'
version: 0.0.1
doi: 10.5281/zenodo.10878635
abstract: '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](https://agupubs.onlinelibrary.wiley.com/doi/10.1029/2023WR034679)"
(Murray, Anna L et al., 2024).'
authors:
- family-names: Götschmann
given-names: Margaux
email: margauxg@ethz.ch
orcid: https://orcid.org/0009-0002-2567-3343
- family-names: Murray
given-names: Anna L.
email: zutana@gmail.com
orcid: https://orcid.org/0000-0003-0909-2012
- family-names: Stone
given-names: Gabriela
email: gastone@ucsd.edu
orcid: https://orcid.org/0000-0002-3102-7500
- family-names: Yang
given-names: Audrey R.
orcid: https://orcid.org/0000-0002-2910-2823
- family-names: Lawrence
given-names: Nicholas F.
- family-names: Matthews
given-names: Hannah
- family-names: Kayser
given-names: Georgia L.
orcid: https://orcid.org/0000-0002-3273-184X
date-released: '2024-03-26'
contact:
- family-names: Götschmann
given-names: Margaux
email: margauxg@ethz.ch
orcid: https://orcid.org/0009-0002-2567-3343
GitHub Events
Total
Last Year
Dependencies
DESCRIPTION
cran
- R >= 2.10 depends
.github/workflows/R-CMD-check.yaml
actions
- actions/checkout v4 composite
- r-lib/actions/check-r-package v2 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite