{"id":38654435,"url":"https://github.com/openwashdata/chckapmalawi","last_synced_at":"2026-01-17T09:25:37.070Z","repository":{"id":203483240,"uuid":"709679915","full_name":"openwashdata/chckapmalawi","owner":"openwashdata","description":"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). ","archived":false,"fork":false,"pushed_at":"2024-01-15T11:45:43.000Z","size":1483,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-05T04:23:37.426Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://openwashdata.github.io/chckapmalawi/","language":"HTML","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-10-25T07:21:36.000Z","updated_at":"2024-01-04T17:14:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"6ee87eec-9088-41ba-b3e1-c75f53ea2181","html_url":"https://github.com/openwashdata/chckapmalawi","commit_stats":null,"previous_names":["openwashdata/chckapmalawi"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/openwashdata/chckapmalawi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openwashdata%2Fchckapmalawi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openwashdata%2Fchckapmalawi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openwashdata%2Fchckapmalawi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openwashdata%2Fchckapmalawi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openwashdata","download_url":"https://codeload.github.com/openwashdata/chckapmalawi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openwashdata%2Fchckapmalawi/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":[],"created_at":"2026-01-17T09:25:33.441Z","updated_at":"2026-01-17T09:25:37.045Z","avatar_url":"https://github.com/openwashdata.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\n\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)\n\nlibrary(tidyverse)\nlibrary(epoxy)\nlibrary(leaflet)\nlibrary(chckapmalawi)\n```\n\n# chckapmalawi\n\n\u003c!-- badges: start --\u003e\n[![DOI](https://zenodo.org/badge/709679915.svg)](https://zenodo.org/doi/10.5281/zenodo.10459432)\n[![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)\n\u003c!-- badges: end --\u003e\n\nThis 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). \n\n## Installation\n\nYou can install the development version of chckapmalawi from [GitHub](https://github.com/) with:\n\n``` r\n# install.packages(\"devtools\")\ndevtools::install_github(\"openwashdata/chckapmalawi\")\n```\nAlternatively, you can download the individual dataset as a CSV or XLSX\nfile from the table below.\n\n```{r, echo=FALSE}\nlibrary(dplyr)\nlibrary(stringr)\nlibrary(readr)\n\nextdata_path \u003c- \"https://github.com/openwashdata/chckapmalawi/raw/main/inst/extdata/\"\n\nread_csv(\"data-raw/dictionary.csv\", col_types = cols(.default = \"c\")) |\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(show_col_types = FALSE)\n\n```\n\n## Project goal\n\n\n\n## Data\n\nThe 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. \n\nThe package provides access to a single data sets.\n\n```{r, echo = TRUE}\nlibrary(chckapmalawi)\n```\n\nThe `chckapmalawi` data set has `r ncol(chckapmalawi)`\nvariables and `r nrow(chckapmalawi)` observations. For an overview\nof the variable names, see the following table.\n\n```{r, eval=FALSE}\nchckapmalawi\n```\n\n```{r, echo=FALSE}\nreadr::read_csv(\"data-raw/dictionary.csv\", col_types = cols(.default = \"c\")) |\u003e \n  dplyr::filter(file_name == \"chckapmalawi.rda\") |\u003e \n  dplyr::select(variable_name:description) |\u003e \n  knitr::kable()\n```\n\n## Example\n\n### Visualizing Vegetable Distribution in Malawi Gardens\nThis 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.\n```{r}\nlibrary(dplyr)\nlibrary(tidyr)\nlibrary(rAmCharts4)\n\nchckapmalawi$vegetables_grown_in_garden \u003c- gsub(\"Other \\\\(please specify\\\\)\", \"Other\", chckapmalawi$vegetables_grown_in_garden)\n\nsplit_data \u003c- chckapmalawi |\u003e \n  separate_rows(vegetables_grown_in_garden, sep = \",\\\\s*\") |\u003e \n  mutate(vegetables_grown_in_garden = trimws(vegetables_grown_in_garden)) |\u003e \n  filter(vegetables_grown_in_garden != \"\")  \n\nvegetable_freq \u003c- table(split_data$vegetables_grown_in_garden)\nvegetable_freq_df \u003c- as.data.frame(vegetable_freq)\nnames(vegetable_freq_df) \u003c- c(\"Vegetable\", \"Frequency\")\n\nvegetable_freq_df$Percentage \u003c- vegetable_freq_df$Frequency / sum(vegetable_freq_df$Frequency) * 100\n\nchart \u003c- amPieChart(\n  data = vegetable_freq_df,\n  category = \"Vegetable\",\n  value = \"Frequency\",\n  depth = 30, \n  legend = FALSE, \n  chartTitle = \"Vegetables Grown in Garden (Malawi)\",\n  animated = 1,\n  theme = \"spiritedaway\"\n) \n```\n```{r, echo=FALSE, fig.cap=\"Screenshot of an interactive pie chart with rAmCharts4\", out.width='75%'}\nknitr::include_graphics(\"man/figures/vegetables_plot.png\")\n```\n\n## License\n\nData are available as \n[CC-BY](https://github.com/openwashdata/basisghana/LICENSE.md).\n\n## Citation\n\nTo cite this package, please use:\n\n```{r}\ncitation(\"chckapmalawi\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenwashdata%2Fchckapmalawi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenwashdata%2Fchckapmalawi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenwashdata%2Fchckapmalawi/lists"}