Title: | Datasets for Designing Surveys in Malawi |
---|---|
Description: | 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. |
Authors: | Ernest Guevarra [aut, cre] |
Maintainer: | Ernest Guevarra <[email protected]> |
License: | GPL (>= 3) |
Version: | 0.0.0.9000 |
Built: | 2024-11-11 05:30:32 UTC |
Source: | https://github.com/spatialworks/malawi |
Download Malawi administrative boundaries shapefiles from Humanitarian Data Exchange
download_boundaries_shapefiles(id, .unzip = TRUE)
download_boundaries_shapefiles(id, .unzip = TRUE)
id |
Character vector for unique identifier of administrative boundaries data for Malawi from Humanitarian Data Exchange |
.unzip |
Logical. Should zip file be unzipped and extracted? Default to TRUE |
If .unzip
, list of shapefiles within the downloaded zip file else
path to downloaded zip file. (Invisible) Shapefiles zip file downloaded to
specified folder.
download_boundaries_shapefiles(id = "cod-ab-mwi")
download_boundaries_shapefiles(id = "cod-ab-mwi")
Download Malawi livelihood zones shapefiles from Humanitarian Data Exchange
download_lhz_shapefiles(.unzip = TRUE)
download_lhz_shapefiles(.unzip = TRUE)
.unzip |
Logical. Should zip file be unzipped and extracted? Default to TRUE |
If .unzip
, list of shapefiles within the downloaded zip file else
path to downloaded zip file. (Invisible) Shapefiles zip file downloaded to
specified folder.
download_lhz_shapefiles()
download_lhz_shapefiles()
Get administrative boundaries layer name
get_boundaries_name(files, adm = NULL)
get_boundaries_name(files, adm = NULL)
files |
List of shapefiles within a downloaded zip file |
adm |
Integer. Administrative level required. Either |
Layer name for specified administrative level boundary
get_boundaries_name( download_boundaries_shapefiles(id = "cod-ab-mwi"), adm = 0 )
get_boundaries_name( download_boundaries_shapefiles(id = "cod-ab-mwi"), adm = 0 )
Retrieve Malawi boundary layer
get_boundary(id, adm = NULL)
get_boundary(id, adm = NULL)
id |
Character vector for unique identifier of administrative boundaries data for Malawi from Humanitarian Data Exchange |
adm |
Integer. Administrative level required. Either |
An sf object for specific boundary of Malawi
get_boundary(id = "cod-ab-mwi", adm = 0)
get_boundary(id = "cod-ab-mwi", adm = 0)
Retrieve Malawi country boundaries
get_country(id)
get_country(id)
id |
Character vector for unique identifier of administrative boundaries data for Malawi from Humanitarian Data Exchange |
An sf object for the country borders of Malawi
get_country(id = "cod-ab-mwi")
get_country(id = "cod-ab-mwi")
Retrieve Malawi districts boundaries
get_districts(id)
get_districts(id)
id |
Character vector for unique identifier of administrative boundaries data for Malawi from Humanitarian Data Exchange |
An sf object for the districts borders of Malawi
get_districts(id = "cod-ab-mwi")
get_districts(id = "cod-ab-mwi")
Retrieve Malawi livelihood zones
get_lhz(layer = get_lhz_name())
get_lhz(layer = get_lhz_name())
layer |
Name of layer for livelihood zones |
An sf object for the livelihood zones of Malawi
get_lhz()
get_lhz()
Get livelihoods zones layer name
get_lhz_name(files = download_lhz_shapefiles())
get_lhz_name(files = download_lhz_shapefiles())
files |
List of shapefiles within a downloaded zip file |
Layer name for livelihood zones shapefile
get_lhz_name()
get_lhz_name()
Retrieve Malawi regions boundaries
get_regions(id)
get_regions(id)
id |
Character vector for unique identifier of administrative boundaries data for Malawi from Humanitarian Data Exchange |
An sf object for the regions borders of Malawi
get_regions(id = "cod-ab-mwi")
get_regions(id = "cod-ab-mwi")
Retrieve Malawi traditional authority areas boundaries
get_ta_areas(id)
get_ta_areas(id)
id |
Character vector for unique identifier of administrative boundaries data for Malawi from Humanitarian Data Exchange |
An sf object for the traditional authority areas borders of Malawi
get_ta_areas(id = "cod-ab-mwi")
get_ta_areas(id = "cod-ab-mwi")