knitr::opts_chunk$set(
  message = FALSE,
  warning = FALSE,
  error = FALSE,
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

library(malawi)

malawi: Datasets for Designing Surveys in Malawi

Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public. Lifecycle: experimental R-CMD-check test-coverage CodeFactor DOI

Designing surveys require relevant datasets to be used as basis for sample size calculations, sampling design, survey planning/logistics and survey implementation. These include datasets on population, lists of sampling clusters, map datasets for spatial sampling, and previous survey datasets that can be used for estimating indicator variance and design effects. This package contains relevant datasets for use in designing surveys in Malawi.

Installation

You can install the development version from GitHub with:

if (!require("remotes")) install.packages("remotes")
remotes::install_github("spatialworks/malawi")

Usage

Retrieve and plot Malawi country borders

country <- get_country(id = "cod-ab-mwi")

plot(sf::st_geometry(country))

Retrieve and plot Malawi regions borders

regions <- get_regions(id = "cod-ab-mwi")

plot(sf::st_geometry(regions))

Retrieve and plot Malawi districts borders

districts <- get_districts(id = "cod-ab-mwi")

plot(sf::st_geometry(districts))

Retrieve and plot Malawi traditional authority areas borders

ta_areas <- get_ta_areas(id = "cod-ab-mwi")

plot(sf::st_geometry(ta_areas))

Retrieve and plot Malawi livelihood zones

lhz <- get_lhz()

plot(sf::st_geometry(lhz))


spatialworks/malawi documentation built on April 28, 2023, 3:53 p.m.