Package 'mozambique'

Title: Datasets for Designing Surveys in Mozambique
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 Mozambique.
Authors: Ernest Guevarra [aut, cre]
Maintainer: Ernest Guevarra <[email protected]>
License: GPL (>= 3)
Version: 0.0.0.9000
Built: 2025-02-09 03:45:10 UTC
Source: https://github.com/spatialworks/mozambique

Help Index


Download Mozambique shapefiles

Description

Download Mozambique shapefiles

Usage

download_shapefiles(id = "cod-ab-moz", .unzip = TRUE)

Arguments

id

Identifier for Mozambique administrative boundaries from HDX.

.unzip

Logical. Should zip file be unzipped and extracted? Default to TRUE

Value

If .unzip, list of shapefiles within the downloaded zip file else path to downloaded zip file. Mozambique subnational administrative boundaries zip file downloaded to specified folder.

Examples

download_shapefiles()

Retrieve Mozambique country boundaries

Description

Retrieve Mozambique country boundaries

Usage

get_country(layer = get_layer_name(adm = 0))

Arguments

layer

Name of layer for country boundaries

Value

An sf object for the country borders of Mozambique

Examples

get_country()

Retrieve Mozambique districts boundaries

Description

Retrieve Mozambique districts boundaries

Usage

get_districts(layer = get_layer_name(adm = 2))

Arguments

layer

Name of layer for districts boundaries

Value

An sf object for the districts borders of Mozambique

Examples

get_districts()

Get layer name

Description

Get layer name

Usage

get_layer_name(files = download_shapefiles(), adm = NULL)

Arguments

files

List of shapefiles within a downloaded zip file

adm

Integer. Administrative level required. Either 0 for country, 1 for provincias, 2 for distritos, or 3 for postos

Value

Layer name for specified administrative level boundary

Examples

get_layer_name(adm = 0)

Retrieve Mozambique posts boundaries

Description

Retrieve Mozambique posts boundaries

Usage

get_posts(layer = get_layer_name(adm = 3))

Arguments

layer

Name of layer for posts boundaries

Value

An sf object for the posts borders of Mozambique

Examples

get_posts()

Retrieve Mozambique provinces boundaries

Description

Retrieve Mozambique provinces boundaries

Usage

get_provinces(layer = get_layer_name(adm = 1))

Arguments

layer

Name of layer for provinces boundaries

Value

An sf object for the provinces borders of Mozambique

Examples

get_provinces()

Mozambique populated places locations

Description

Mozambique populated places locations

Usage

ppl

Format

A sf object containing populated places locations of Mozambique

| Variables | Description | | osm_id | OpenStreetMap identifier | | name | Name of populated place | | source | Source of data for populated place | | population | Population size | | is_in | Populated place is in? | | place | Type of place |

Source

https://data.humdata.org/dataset/hotosm_moz_populated_places

Examples

ppl

Mozambique settlements locations

Description

Mozambique settlements locations

Usage

settlements

Format

A sf object containing settlements locations of Mozambique

| Variables | Description | | OBJECTID | Object identifier | | FID_1 | Feature identifier | | Sett_Name | Settlement name | | F_CLASS | Feature class | | F_DESIG | Feature designation | | ADM1_Old | Administrative level 1 name - old | | ADM2_Old | Administrative level 2 name - old | | Country | Country name | | ISO3 | Tree letter code for country | | ADM1_Name | Administrative level 1 name - current | | ADM1_Code | Administrative level 1 code - current | | ADM1_ID | Administrative level 1 identifier - current | | ADM2_Name | Administrative level 2 name - current | | ADM2_Code | Administrative level 2 code - current | | ADM2_ID | Administrative level 2 identifier - current | | ADM3_Name | Administrative level 3 name - current | | ADM3_Code | Administrative level 3 code - current | | ADM3_ID | Administrative level 3 identifier - current | | ADM3_Type | Administrative level 3 type - current | | ADM3_TypeE | Administrative level 3 type in English - current | | Latitude | Latitude coordinate | | Longitude | Longitude coordinate | | SHAPE_Leng | Shape length |

Source

https://data.humdata.org/dataset/mozambique-settlement-shapefiles

Examples

settlements