chckapmalawi

This packages compiles insights from a Knowledge, Attitudes, and Practices (KAP) Survey conducted by BASEflow for Waste Advisers in Malawi, focusing on Community Health Centers (CHCs).

https://github.com/openwashdata/chckapmalawi

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.4%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

This packages compiles insights from a Knowledge, Attitudes, and Practices (KAP) Survey conducted by BASEflow for Waste Advisers in Malawi, focusing on Community Health Centers (CHCs).

Basic Info
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 2
  • Releases: 1
Created over 2 years ago · Last pushed about 2 years ago
Metadata Files
Readme License Citation

README.Rmd

---
output: github_document

---



```{r, include = FALSE}
knitr::opts_chunk$set( 
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

library(tidyverse)
library(epoxy)
library(leaflet)
library(chckapmalawi)
```

# chckapmalawi


[![DOI](https://zenodo.org/badge/709679915.svg)](https://zenodo.org/doi/10.5281/zenodo.10459432)
[![R-CMD-check](https://github.com/openwashdata/chckapmalawi/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/openwashdata/chckapmalawi/actions/workflows/R-CMD-check.yaml)


This packages compiles insights from a Knowledge, Attitudes, and Practices (KAP) Survey conducted by [BASEflow](https://baseflowmw.org/) for Waste Advisers in Malawi, focusing on Community Health Centers (CHCs). 

## Installation

You can install the development version of chckapmalawi from [GitHub](https://github.com/) with:

``` r
# install.packages("devtools")
devtools::install_github("openwashdata/chckapmalawi")
```
Alternatively, you can download the individual dataset as a CSV or XLSX
file from the table below.

```{r, echo=FALSE}
library(dplyr)
library(stringr)
library(readr)

extdata_path <- "https://github.com/openwashdata/chckapmalawi/raw/main/inst/extdata/"

read_csv("data-raw/dictionary.csv", col_types = cols(.default = "c")) |> 
  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(show_col_types = FALSE)

```

## Project goal



## Data

The data set covers diverse aspects including household demographics, CHC membership, water sources, sanitation, nutrition knowledge, hygiene practices, and environmental conditions. It was collected in 20XX. 

The package provides access to a single data sets.

```{r, echo = TRUE}
library(chckapmalawi)
```

The `chckapmalawi` data set has `r ncol(chckapmalawi)`
variables and `r nrow(chckapmalawi)` observations. For an overview
of the variable names, see the following table.

```{r, eval=FALSE}
chckapmalawi
```

```{r, echo=FALSE}
readr::read_csv("data-raw/dictionary.csv", col_types = cols(.default = "c")) |> 
  dplyr::filter(file_name == "chckapmalawi.rda") |> 
  dplyr::select(variable_name:description) |> 
  knitr::kable()
```

## Example

### Visualizing Vegetable Distribution in Malawi Gardens
This code snippet utilizes rAmCharts4 in R to visualize vegetable diversity in Malawian gardens. By displaying the distribution of crops grown, it highlights how Malawians can self-provide a diverse range of vegetables, crucial for a balanced diet.
```{r}
library(dplyr)
library(tidyr)
library(rAmCharts4)

chckapmalawi$vegetables_grown_in_garden <- gsub("Other \\(please specify\\)", "Other", chckapmalawi$vegetables_grown_in_garden)

split_data <- chckapmalawi |> 
  separate_rows(vegetables_grown_in_garden, sep = ",\\s*") |> 
  mutate(vegetables_grown_in_garden = trimws(vegetables_grown_in_garden)) |> 
  filter(vegetables_grown_in_garden != "")  

vegetable_freq <- table(split_data$vegetables_grown_in_garden)
vegetable_freq_df <- as.data.frame(vegetable_freq)
names(vegetable_freq_df) <- c("Vegetable", "Frequency")

vegetable_freq_df$Percentage <- vegetable_freq_df$Frequency / sum(vegetable_freq_df$Frequency) * 100

chart <- amPieChart(
  data = vegetable_freq_df,
  category = "Vegetable",
  value = "Frequency",
  depth = 30, 
  legend = FALSE, 
  chartTitle = "Vegetables Grown in Garden (Malawi)",
  animated = 1,
  theme = "spiritedaway"
) 
```
```{r, echo=FALSE, fig.cap="Screenshot of an interactive pie chart with rAmCharts4", out.width='75%'}
knitr::include_graphics("man/figures/vegetables_plot.png")
```

## License

Data are available as 
[CC-BY](https://github.com/openwashdata/basisghana/LICENSE.md).

## Citation

To cite this package, please use:

```{r}
citation("chckapmalawi")
```

Owner

  • Name: openwashdata
  • Login: openwashdata
  • Kind: organization

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 "chckapmalawi" in publications use:'
type: software
license: CC-BY-4.0
title: 'chckapmalawi: Knowledge, Attitudes and Practices (KAP) Survey about Community
  Health Centers (CHC) in Malawi'
version: 0.0.0.9000
abstract: This dataset captures insights from a Knowledge, Attitudes, and Practices
  (KAP) Survey conducted by BASEflow for Waste Advisers in Malawi, focusing on Community
  Health Centers (CHCs). It covers diverse aspects including household demographics,
  CHC membership, water sources, sanitation, nutrition knowledge, hygiene practices,
  and environmental conditions.
authors:
- family-names: Skorik
  given-names: Sophia
  email: sskorik@ethz.ch
  orcid: https://orcid.org/0009-0001-4755-1649
- family-names: Schöbitz
  given-names: Lars
  email: lschoebitz@ethz.ch
  orcid: https://orcid.org/0000-0003-2196-5015
- family-names: Sagawa
  given-names: Rhodrick
  email: rhodrick@baseflowmw.org
  orcid: https://orcid.org/0009-0004-7294-4120
- family-names: Kumpukwe
  given-names: Paul
  email: paul@baseflowmw.org
  orcid: https://orcid.org/0009-0002-8797-8046
- family-names: Chinangwa
  given-names: Veronica
  email: veronica@baseflowmw.org
  orcid: https://orcid.org/0009-0005-7549-9584
- family-names: Banda
  given-names: Baleke
  email: baleke@baseflowmw.org
  orcid: https://orcid.org/0009-0005-7582-1238
- family-names: Kananji
  given-names: Rodney
  email: rodney@baseflowmw.org
  orcid: https://orcid.org/0009-0005-5277-9778
- family-names: Bwanyula
  given-names: Feston
  email: feston@baseflowmw.org
  orcid: https://orcid.org/0009-0000-6731-5048
- family-names: Maliana
  given-names: Gloria
  email: malianagloria24@gmail.com
  orcid: https://orcid.org/0009-0003-0563-3579
- family-names: Ngwira
  given-names: Given
  email: given@baseflowmw.org
  orcid: https://orcid.org/0009-0002-7847-4057
date-released: '2023-12-29'
contact:
- family-names: Skorik
  given-names: Sophia
  email: sskorik@ethz.ch
  orcid: https://orcid.org/0009-0001-4755-1649

GitHub Events

Total
Last Year