clusterInfo {surveyPrev}R Documentation

Get cluster information

Description

This function add admin 1 and admin2 information to a paticular DHS survey.

Usage

clusterInfo(geo, poly.adm1, poly.adm2, by.adm1 = "NAME_1", by.adm2 = "NAME_2")

Arguments

geo

spatial point dataframe

poly.adm1

spatial polygons dataframe for admin 1

poly.adm2

spatial polygons dataframe for admin 2 or other lower admin level.

by.adm1

the column name of column for Admin names for admin 1

by.adm2

the column name of column for Admin names for admin 2 or other lower admin level.

Value

This function returns the dataset that contains admin 1 and admin 2 information and coordinates for each cluster.

Author(s)

Qianyu Dong

Examples

## Not run: 
geo <- getDHSgeo(country = "Zambia", year = 2018)
data(ZambiaAdm1)
data(ZambiaAdm2)
cluster.info <- clusterInfo(geo = geo,
                            poly.adm1 = ZambiaAdm1,
                            poly.adm2 = ZambiaAdm2)

## End(Not run)

[Package surveyPrev version 1.0.0 Index]