{"id":38654459,"url":"https://github.com/openwashdata/ugabore","last_synced_at":"2026-01-17T09:25:36.791Z","repository":{"id":237627877,"uuid":"794118183","full_name":"openwashdata/ugabore","owner":"openwashdata","description":"Borehole repair data from central Uganda associated with a project report completed by Joseph Lwere for the “data science for openwashdata” course","archived":false,"fork":false,"pushed_at":"2024-06-20T13:09:52.000Z","size":965,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-04T21:36:42.222Z","etag":null,"topics":["analysis","borehole","data","open-data","r","uganda","wash","water"],"latest_commit_sha":null,"homepage":"https://openwashdata.github.io/ugabore/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"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":null,"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-04-30T13:43:49.000Z","updated_at":"2024-06-20T13:11:41.000Z","dependencies_parsed_at":"2024-05-02T21:38:44.449Z","dependency_job_id":"961fec84-2e6c-44eb-9230-9b3a7b130156","html_url":"https://github.com/openwashdata/ugabore","commit_stats":null,"previous_names":["openwashdata/ugabore"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/openwashdata/ugabore","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openwashdata%2Fugabore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openwashdata%2Fugabore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openwashdata%2Fugabore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openwashdata%2Fugabore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openwashdata","download_url":"https://codeload.github.com/openwashdata/ugabore/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openwashdata%2Fugabore/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":["analysis","borehole","data","open-data","r","uganda","wash","water"],"created_at":"2026-01-17T09:25:34.670Z","updated_at":"2026-01-17T09:25:36.765Z","avatar_url":"https://github.com/openwashdata.png","language":"R","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  message = FALSE,\n  warning = FALSE,\n  fig.retina = 2,\n  fig.align = 'center'\n)\n```\n\n# ugabore\n\n\u003c!-- badges: start --\u003e\n\n[![License: CC BY\n4.0](https://img.shields.io/badge/License-CC_BY_4.0-lightblue.svg)](https://creativecommons.org/licenses/by/4.0/)\n[![R-CMD-check](https://github.com/openwashdata/ugabore/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/openwashdata/ugabore/actions/workflows/R-CMD-check.yaml)\n[![DOI](https://zenodo.org/badge/770378167.svg)](https://zenodo.org/doi/10.5281/zenodo.12188179)\n\u003c!-- badges: end --\u003e\n\nThe goal of `ugabore` is to provide users with documentation on borehole repair data collected from two districts in central Uganda where a borehole operation and maintenance program is run. The dataset is associated with the following [project report](https://ds4owd-001.github.io/project-ljc3084/) completed by Joseph Lwere for the [\"data science for openwashdata\" course](https://ds4owd-001.github.io/website/) offered by [openwashdata.org](https://openwashdata.org/).\n\n## Installation\n\nYou can install the development version of ugabore from\n[GitHub](https://github.com/) with:\n\n``` r\n# install.packages(\"devtools\")\ndevtools::install_github(\"openwashdata/ugabore\")\n```\n\nAlternatively, you can download the individual datasets as a CSV or XLSX\nfile from the table below.\n\n```{r, echo=FALSE, message=FALSE, warning=FALSE}\nlibrary(dplyr)\nlibrary(knitr)\nlibrary(readr)\nlibrary(stringr)\nlibrary(gt)\nlibrary(kableExtra)\nlibrary(ggtext)\n\nextdata_path \u003c- \"https://github.com/openwashdata/ugabore/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\nBoreholes are the main technology used to access groundwater in Uganda, according to [@owor2022permeability], and they are also a source of drinking water for households in rural communities in Africa, including Uganda [@lapworth2020drinking]. Therefore, it is crucial to have good quality data to inform decision-making and planning. This project examines data collected from two districts in central Uganda where a borehole operation and maintenance program is run. As professional operation and maintenance is considered the future for borehole functionality in Uganda [@smith2023does], this project report offers more insights into research on this topic.\n\n## Data\n\nThe dataset includes information about borehole repair records used by the borehole operation and maintenance company operating in central Uganda. The package provides access to one dataset.\n\n```{r}\nlibrary(ugabore)\n```\n\nThe `ugabore` data set has `r ncol(ugabore)` variables and `r nrow(ugabore)` observations. For an overview of the variable names, see the following table.\n\n```{r echo=FALSE, message=FALSE, warning=FALSE}\nreadr::read_csv(\"data-raw/dictionary.csv\") |\u003e\n  dplyr::filter(file_name == \"ugabore.rda\") |\u003e\n  dplyr::select(variable_name:description) |\u003e \n  knitr::kable() |\u003e \n  kableExtra::kable_styling(\"striped\")\n```\n\n\n## Example: Water production capacity versus number of people collecting\n\nHere is an example illustrating the relationship between the number of people collecting water from boreholes in a sub-county and the water production capacity of the corresponding boreholes. From the plot, we see that the sub-county of Kalagala has the highest water production capacity by far. However, it is not the sub-county that serves the most people, suggesting it may be the richest one. On another note, the sub-counties Bombo Town Council and Luwero Town Council have the most people collecting water from their boreholes but do not have high water production capacity, indicating a need for improvement.\n\n```{r, warning=FALSE}\nlibrary(ugabore)\nlibrary(ggplot2)\nlibrary(dplyr)\n\n# Define custom colors for plotting\ncustom_colors \u003c- c(\n  \"Bamunanika\" = \"dodgerblue2\", \"Bombo Tc\" = \"#E31A1C\",\n  \"Busukuma\" = \"green4\",\n  \"Butuntumula\" = \"#6A3D9A\",\n  \"Gombe\" = \"#FF7F00\", \n  \"Kajjansi Town Council\" = \"black\", \"Kakiri\" = \"gold1\",\n  \"Kakiri Town Council\" = \"skyblue2\", \"Kalagala\" = \"#FB9A99\",\n  \"Kamira\" = \"palegreen2\",\n  \"Kasangati Town Council\" = \"#CAB2D6\", \n  \"Kasangombe\" = \"#FDBF6F\", \n  \"Katikamu\" = \"gray70\", \"Kikyusa\" = \"khaki2\",\n  \"Kira\" = \"maroon\", \"Luwero\" = \"orchid1\", \"Luwero Tc\" = \"deeppink1\", \n  \"Makulubita\" = \"blue1\", \"Namayumba Town Council\" = \"steelblue4\",\n  \"Wobulenzi Tc\" = \"darkturquoise\", \"Zirobwe\" = \"green1\", \n  \"NA\" = \"yellow4\")\n\n# Summarize data by sub_county\nsummary_data \u003c- ugabore |\u003e \n  group_by(sub_county) |\u003e \n  summarise(mean_well_yield = mean(well_yield, na.rm = TRUE),\n            mean_population_served = mean(population_served, na.rm = TRUE))\n\n# Plot summarized data\nggplot(summary_data, aes(x = mean_well_yield, y = mean_population_served, \n                         color = sub_county)) +\n  geom_point(size = 3, alpha = 0.7) +\n  labs(title = \"Water collection versus production by sub-county\",\n       x = \"\\naverage water production capacity in m3/h\",\n       y = \"average number of people\\n\",\n       color = \"sub-county\") +\n  scale_color_manual(values = custom_colors) +\n  theme_minimal() \n```\n\n## License\n\nData are available as\n[CC-BY](https://github.com/openwashdata/ugabore/blob/main/LICENSE.md).\n\n## Citation\n\nPlease cite this package using:\n\n```{r}\ncitation(\"ugabore\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenwashdata%2Fugabore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenwashdata%2Fugabore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenwashdata%2Fugabore/lists"}