assign_cluster_area: Aggregate district level cluster dataframe

View source: R/calculate_survey_fertility.R

assign_cluster_areaR Documentation

Aggregate district level cluster dataframe

Description

Aggregate a dataframe of survey clusters geolocated to an administrative to any higher administrative level

Usage

assign_cluster_area(clusters, areas_wide, area_level)

Arguments

clusters

Dataframe of geolocated survey clusters

areas_wide

Area hierarchy in wide format

area_level

Integer referring to administrative level, where 0 is national, 1 is provincial etc.

Value

Dataframe list of clusters by administrative area, one list item per survey

See Also

get_areas


osymandius/dfertility documentation built on Jan. 28, 2024, 4:18 a.m.