cbssuitabilityhaiti
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)
Science Score: 77.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 3 DOI reference(s) in README -
✓Academic publication links
Links to: zenodo.org -
✓Committers with academic emails
2 of 5 committers (40.0%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (16.7%) to scientific vocabulary
Keywords
central-america
container-based-sanitation
haiti
open-data
open-datasets
r
sanitation
suitability-analysis
wash
Last synced: 6 months ago
·
JSON representation
·
Repository
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)
Basic Info
- Host: GitHub
- Owner: openwashdata
- License: cc-by-4.0
- Language: R
- Default Branch: main
- Homepage: https://openwashdata.github.io/cbssuitabilityhaiti/
- Size: 16.7 MB
Statistics
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 1
Topics
central-america
container-based-sanitation
haiti
open-data
open-datasets
r
sanitation
suitability-analysis
wash
Created almost 3 years ago
· Last pushed over 2 years ago
Metadata Files
Readme
License
Citation
README.Rmd
---
output: github_document
editor_options:
chunk_output_type: console
markdown:
wrap: 72
execute:
echo: false
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%",
message = FALSE,
warning = FALSE,
fig.retina = 2,
fig.align = 'center'
)
library(tidyverse)
library(sf)
library(tmap)
library(cbssuitabilityhaiti)
```
# cbssuitabilityhaiti
[](https://doi.org/10.5281/zenodo.8361085)
[](https://github.com/openwashdata/cbssuitabilityhaiti/actions/workflows/R-CMD-check.yaml)
[](https://creativecommons.org/licenses/by/4.0/)
The goal of `cbssuitabiility` is to provide datasets for research and
planning of water and solid waste management in Cap Haïtien, Haiti. This
package combines datasets collected as part of two different projects.
The package includes geospatial data about the locations of water access
points and data from a sanitation zoning report for the municipality of
Cap Haïtien.
## Installation
You can install the development version of cbssuitabilityhaiti from
[GitHub](https://github.com/) with:
```{r installation, eval=FALSE, echo=TRUE}
# install.packages("devtools")
devtools::install_github("openwashdata/cbssuitabilityhaiti")
```
Alternatively, you can download the individual datasets as a CSV or XLSX
file from the table below.
```{r, echo=FALSE}
extdata_path <- "https://github.com/openwashdata/cbssuitabilityhaiti/raw/main/inst/extdata/"
read_csv("data-raw/dictionary.csv") |>
distinct(file_name) |>
mutate(file_name = str_remove(file_name, ".rda")) |>
rename(dataset = file_name) |>
mutate(
CSV = paste0("[Download CSV](", extdata_path, dataset, ".csv)"),
XLSX = paste0("[Download XLSX](", extdata_path, dataset, ".xlsx)")
) |>
knitr::kable()
```
# Datasets
This data package has two datasets, `mwater` and `okap`.
## mwater
Water point data for the city of Cap Haitien, Haiti. The data collection and characterization was done between 2016 and 2022.
```{r}
library(cbssuitabilityhaiti)
```
The `mwater` data set has `r ncol(mwater)` variables and
`r nrow(mwater)` observations. For an overview of the variable names,
see the following table.
```{r, eval=FALSE}
mwater
```
```{r, echo=FALSE}
readr::read_csv("data-raw/dictionary.csv") |>
dplyr::filter(file_name == "mwater.rda") |>
dplyr::select(variable_name:description) |>
knitr::kable()
```
Below is a map of the water points in this dataset.
```{r, echo=FALSE}
#| label: fig-water-access-points
#| fig-cap: Locations of water access points in this dataset
qtm(mwater) +
tm_graticules()
```
## Projet Eau et Assainissement de l'USAID
Sanitation zoning assessment for the Cap Haïtien, Haiti region.
### Description
The study, based on three basic criteria (physical, urban
characteristics and socioeconomic constraints of the zones), divides the
Cap-Haïtien metropolitan area into homogeneous zones in order to propose
adapted sanitation solutions for each zone based on a set of predefined
criteria.
### Data
This data includes data from a sanitation zoning report done for the
city of Cap Haïtien, Haiti in 2022. Additionally, it contains spatial
data about the neighborhoods of 5 different Haïtien cities. The
attribute table includes data on population density, socioeconomic
status, suitability of pit latrines, and suggested sewage construction
priority zones.
These data were developed under the USAID Water and Sanitation Project
in collaboration with the Cap-Haitian municipal government and DINEPA.
These data do not reflect the opinion of USAID or the US Government.
```{r}
library(cbssuitabilityhaiti)
```
The `okap` data set has `r ncol(okap)` variables and `r nrow(okap)`
observations. For an overview of the variable names, see the following
table.
```{r, eval=FALSE}
okap
```
```{r, echo=FALSE}
readr::read_csv("data-raw/dictionary.csv") |>
dplyr::filter(file_name == "okap.rda") |>
dplyr::select(variable_name:description) |>
knitr::kable()
```
```{r, echo=FALSE}
qtm(okap) +
tm_graticules()
```
#### Source
## Examples
The code below is an example which shows how you could use the data to
prepare a map in R. Find this and more examples in the [prepared
examples
article](https://openwashdata.github.io/cbssuitabilityhaiti/articles/examples.html)
(`vignette("examples")`).
```{r example, eval=FALSE, echo=TRUE}
library(cbssuitabilityhaiti)
library(tidyverse)
library(sf)
library(tmap)
## create an interactive map for cap haitien
# set mapping mode to interactive ("view")
tmap_mode("view")
# create first map layer: neighborhood areas
tm_shape(filter(okap, cte == "ctecaphaitien")) +
tm_borders() +
tm_fill(alpha = 0.6) +
# create second map layer: locations and type of the water points
tm_shape(drop_na(st_join(mwater, okap), neighborho)) +
tm_dots(col = "type", palette = "PuRd")
```
```{r, echo=FALSE, fig.cap="Screenshot of the an interactive map with OpenStreetMap layer."}
knitr::include_graphics("man/figures/screenshot-map-water-access-cap-haitien.png")
```
## License
Data are available as
[CC-BY](https://github.com/openwashdata/cbssuitability/blob/main/LICENSE.md).
## Citation
Please cite using:
```{r}
citation("cbssuitabilityhaiti")
```
## Additional data use information
Anyone interested in publishing the data:
- Sanitation zoning assessment data (`okap`) should be attributed with
"These data were developed under the USAID Water and Sanitation
Project in collaboration with the Cap-Haitian municipal government
and DINEPA. These data do not reflect the opinion of USAID or the US
Government."
Owner
- Name: openwashdata
- Login: openwashdata
- Kind: organization
- Repositories: 1
- Profile: https://github.com/openwashdata
Citation (CITATION.cff)
# -----------------------------------------------------------
# CITATION file created with {cffr} R package, v0.5.0
# See also: https://docs.ropensci.org/cffr/
# -----------------------------------------------------------
cff-version: 1.2.0
message: 'To cite package "cbssuitabilityhaiti" in publications use:'
type: software
license: CC-BY-4.0
title: 'cbssuitabilityhaiti: Data for a sanitation zoning assessment done for Cap
Haitien, Haiti'
version: 0.0.1
doi: 10.5281/zenodo.8361085
abstract: This package contains data for a sanitation zoning assessment done for the
city of Cap Haitien, Haiti. It combines two datasets used for an analysis of the
suitability of container-based sanitation (CBS).
authors:
- family-names: Loos
given-names: Sebastian Camilo
email: seba.loos@hotmail.com
orcid: https://orcid.org/0000-0003-2196-5015
- family-names: Kramer
given-names: Sasha
email: skramer@oursoil.org
orcid: https://orcid.org/0000-0002-4048-7517
- family-names: Lubeck-Schricker
given-names: Maya
email: mlubeck-schricker@oursoil.org
orcid: https://orcid.org/0000-0002-8659-5943
preferred-citation:
type: generic
title: 'cbssuitabilityhaiti: Data for a sanitation zoning assessment done for Cap
Haitien, Haiti'
authors:
- family-names: Loos
given-names: Sebastian Camilo
email: seba.loos@hotmail.com
orcid: https://orcid.org/0000-0003-2196-5015
- family-names: Kramer
given-names: Sasha
email: skramer@oursoil.org
orcid: https://orcid.org/0000-0002-4048-7517
- family-names: Lubeck-Schricker
given-names: Maya
email: mlubeck-schricker@oursoil.org
orcid: https://orcid.org/0000-0002-8659-5943
doi: 10.5281/zenodo.8361085
year: '2023'
abstract: This package contains data for a sanitation zoning assessment done for
the city of Cap Haitien, Haiti. It combines two datasets used for an analysis
of the suitability of container-based sanitation (CBS).
version: 0.0.1
contact:
- family-names: Loos
given-names: Sebastian Camilo
email: seba.loos@hotmail.com
orcid: https://orcid.org/0000-0003-2196-5015
references:
- type: software
title: 'R: A Language and Environment for Statistical Computing'
notes: Depends
url: https://www.R-project.org/
authors:
- name: R Core Team
location:
name: Vienna, Austria
year: '2023'
institution:
name: R Foundation for Statistical Computing
version: '>= 2.10'
- type: software
title: tmap
abstract: 'tmap: Thematic Maps'
notes: Suggests
url: https://r-tmap.github.io/tmap/
repository: https://CRAN.R-project.org/package=tmap
authors:
- family-names: Tennekes
given-names: Martijn
email: mtennekes@gmail.com
year: '2023'
GitHub Events
Total
Last Year
Committers
Last synced: about 2 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| sebastian-loos | s****s@h****m | 47 |
| Lars Schöbitz | l****s@l****e | 9 |
| Lars Schöbitz | l****z@e****h | 6 |
| Mian | m****g@e****h | 3 |
| mayalubecks | 1****s | 3 |
Issues and Pull Requests
Last synced: about 2 years ago
All Time
- Total issues: 4
- Total pull requests: 0
- Average time to close issues: 2 months
- Average time to close pull requests: N/A
- Total issue authors: 2
- Total pull request authors: 0
- Average comments per issue: 3.5
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 4
- Pull requests: 0
- Average time to close issues: 2 months
- Average time to close pull requests: N/A
- Issue authors: 2
- Pull request authors: 0
- Average comments per issue: 3.5
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- larnsce (2)
- sebastian-loos (2)
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Dependencies
DESCRIPTION
cran
- R >= 2.10 depends
.github/workflows/R-CMD-check.yaml
actions
- actions/checkout v3 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