{"id":38654581,"url":"https://github.com/openwashdata/cbssuitabilityhaiti","last_synced_at":"2026-01-17T09:25:40.307Z","repository":{"id":160694229,"uuid":"624444836","full_name":"openwashdata/cbssuitabilityhaiti","owner":"openwashdata","description":"Data for a sanitation zoning assessment prepared for the city of Cap Haitien, Haiti. The package combines two datasets used for an analysis of the suitability of container-based sanitation (CBS)","archived":false,"fork":false,"pushed_at":"2023-10-03T12:44:32.000Z","size":17520,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-04T19:35:35.368Z","etag":null,"topics":["central-america","container-based-sanitation","haiti","open-data","open-datasets","r","sanitation","suitability-analysis","wash"],"latest_commit_sha":null,"homepage":"https://openwashdata.github.io/cbssuitabilityhaiti/","language":"R","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":"2023-04-06T13:36:34.000Z","updated_at":"2023-12-25T13:44:46.000Z","dependencies_parsed_at":"2023-10-02T19:52:43.122Z","dependency_job_id":"a15ae754-d586-4b88-95cb-398b2b12fb01","html_url":"https://github.com/openwashdata/cbssuitabilityhaiti","commit_stats":{"total_commits":68,"total_committers":5,"mean_commits":13.6,"dds":0.3088235294117647,"last_synced_commit":"1e7b73d4a09d55098b7466106e3681fdd91b1ee8"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/openwashdata/cbssuitabilityhaiti","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openwashdata%2Fcbssuitabilityhaiti","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openwashdata%2Fcbssuitabilityhaiti/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openwashdata%2Fcbssuitabilityhaiti/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openwashdata%2Fcbssuitabilityhaiti/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openwashdata","download_url":"https://codeload.github.com/openwashdata/cbssuitabilityhaiti/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openwashdata%2Fcbssuitabilityhaiti/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":["central-america","container-based-sanitation","haiti","open-data","open-datasets","r","sanitation","suitability-analysis","wash"],"created_at":"2026-01-17T09:25:40.149Z","updated_at":"2026-01-17T09:25:40.265Z","avatar_url":"https://github.com/openwashdata.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\neditor_options: \n  chunk_output_type: console\n  markdown: \n    wrap: 72\nexecute:\n  echo: false    \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\nlibrary(tidyverse)\nlibrary(sf)\nlibrary(tmap)\nlibrary(cbssuitabilityhaiti)\n```\n\n# cbssuitabilityhaiti\n\n\u003c!-- badges: start --\u003e\n[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.8361085.svg)](https://doi.org/10.5281/zenodo.8361085)\n[![R-CMD-check](https://github.com/openwashdata/cbssuitabilityhaiti/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/openwashdata/cbssuitabilityhaiti/actions/workflows/R-CMD-check.yaml)\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\u003c!-- badges: end --\u003e\n\nThe goal of `cbssuitabiility` is to provide datasets for research and\nplanning of water and solid waste management in Cap Haïtien, Haiti. This\npackage combines datasets collected as part of two different projects.\nThe package includes geospatial data about the locations of water access\npoints and data from a sanitation zoning report for the municipality of\nCap Haïtien.\n\n## Installation\n\nYou can install the development version of cbssuitabilityhaiti from\n[GitHub](https://github.com/) with:\n\n```{r installation, eval=FALSE, echo=TRUE}\n# install.packages(\"devtools\")\ndevtools::install_github(\"openwashdata/cbssuitabilityhaiti\")\n```\n\nAlternatively, you can download the individual datasets as a CSV or XLSX\nfile from the table below.\n\n```{r, echo=FALSE}\n\nextdata_path \u003c- \"https://github.com/openwashdata/cbssuitabilityhaiti/raw/main/inst/extdata/\"\n\nread_csv(\"data-raw/dictionary.csv\") |\u003e \n  distinct(file_name) |\u003e \n  mutate(file_name = str_remove(file_name, \".rda\")) |\u003e \n  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# Datasets \n\nThis data package has two datasets, `mwater` and `okap`.\n\n## mwater \n\nWater point data for the city of Cap Haitien, Haiti. The data collection and characterization was done between 2016 and 2022.\n\n```{r}\nlibrary(cbssuitabilityhaiti)\n```\n\nThe `mwater` data set has `r ncol(mwater)` variables and\n`r nrow(mwater)` observations. For an overview of the variable names,\nsee the following table.\n\n```{r, eval=FALSE}\nmwater \n```\n\n```{r, echo=FALSE}\nreadr::read_csv(\"data-raw/dictionary.csv\") |\u003e \n  dplyr::filter(file_name == \"mwater.rda\") |\u003e \n  dplyr::select(variable_name:description) |\u003e \n  knitr::kable()\n```\n\nBelow is a map of the water points in this dataset. \n\n```{r, echo=FALSE}\n#| label: fig-water-access-points\n#| fig-cap: Locations of water access points in this dataset\n\nqtm(mwater) +\n  tm_graticules()\n```\n\n## Projet Eau et Assainissement de l'USAID\n\nSanitation zoning assessment for the Cap Haïtien, Haiti region.\n\n### Description\n\nThe study, based on three basic criteria (physical, urban\ncharacteristics and socioeconomic constraints of the zones), divides the\nCap-Haïtien metropolitan area into homogeneous zones in order to propose\nadapted sanitation solutions for each zone based on a set of predefined\ncriteria.\n\n### Data\n\nThis data includes data from a sanitation zoning report done for the\ncity of Cap Haïtien, Haiti in 2022. Additionally, it contains spatial\ndata about the neighborhoods of 5 different Haïtien cities. The\nattribute table includes data on population density, socioeconomic\nstatus, suitability of pit latrines, and suggested sewage construction\npriority zones.\n\nThese data were developed under the USAID Water and Sanitation Project\nin collaboration with the Cap-Haitian municipal government and DINEPA.\nThese data do not reflect the opinion of USAID or the US Government.\n\n```{r}\nlibrary(cbssuitabilityhaiti)\n```\n\nThe `okap` data set has `r ncol(okap)` variables and `r nrow(okap)`\nobservations. For an overview of the variable names, see the following\ntable.\n\n```{r, eval=FALSE}\nokap\n```\n\n```{r, echo=FALSE}\nreadr::read_csv(\"data-raw/dictionary.csv\") |\u003e \n  dplyr::filter(file_name == \"okap.rda\") |\u003e \n  dplyr::select(variable_name:description) |\u003e \n  knitr::kable()\n```\n\n```{r, echo=FALSE}\nqtm(okap) +\n  tm_graticules()\n```\n\n#### Source\n\n\u003chttps://data.humdata.org/dataset/cap-haitien-haiti-sanitation-zoning-assessment\u003e\n\n## Examples\n\nThe code below is an example which shows how you could use the data to\nprepare a map in R. Find this and more examples in the [prepared\nexamples\narticle](https://openwashdata.github.io/cbssuitabilityhaiti/articles/examples.html)\n(`vignette(\"examples\")`).\n\n\n```{r example, eval=FALSE, echo=TRUE}\n\nlibrary(cbssuitabilityhaiti)\nlibrary(tidyverse)\nlibrary(sf)\nlibrary(tmap)\n\n\n## create an interactive map for cap haitien\n\n# set mapping mode to interactive (\"view\")\ntmap_mode(\"view\")\n\n# create first map layer: neighborhood areas\ntm_shape(filter(okap, cte == \"ctecaphaitien\")) +\n  tm_borders() +\n  tm_fill(alpha = 0.6) +\n  # create second map layer: locations and type of the water points\n  tm_shape(drop_na(st_join(mwater, okap), neighborho)) +\n  tm_dots(col = \"type\", palette = \"PuRd\")\n```\n\n```{r, echo=FALSE, fig.cap=\"Screenshot of the an interactive map with OpenStreetMap layer.\"}\nknitr::include_graphics(\"man/figures/screenshot-map-water-access-cap-haitien.png\")\n```\n\n## License\n\nData are available as\n[CC-BY](https://github.com/openwashdata/cbssuitability/blob/main/LICENSE.md).\n\n## Citation\n\nPlease cite using:\n\n```{r}\ncitation(\"cbssuitabilityhaiti\")\n```\n\n## Additional data use information\n\nAnyone interested in publishing the data:\n\n-   Sanitation zoning assessment data (`okap`) should be attributed with\n    \"These data were developed under the USAID Water and Sanitation\n    Project in collaboration with the Cap-Haitian municipal government\n    and DINEPA. These data do not reflect the opinion of USAID or the US\n    Government.\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenwashdata%2Fcbssuitabilityhaiti","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenwashdata%2Fcbssuitabilityhaiti","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenwashdata%2Fcbssuitabilityhaiti/lists"}