combine_areas: Collect results for lower area hierarchies

View source: R/util.R

combine_areasR Documentation

Collect results for lower area hierarchies

Description

Function to collect results for lower area hierarchies by joining higher area hierarchies.

Usage

combine_areas(.data, areas_wide, area_lev, join, add_keep_cols = NULL, ...)

Arguments

.data

Results for highest area hierarchy, to be combined to give results for lower/less granular area hierarchies.

areas_wide

data.frame with shapefiles and area hierarchy.

area_lev

Desired admin boundary level.

join

Indicator to decide whether to join data for different area hierarchies, or return them in list form.

add_keep_cols

Additional columns to keep when summarising, Default: NULL

...

Further arguments passed to add_area_id.

Value

data.frame or list (depending on the value of join) with results for all area levels less than or equal to area_lev.


mrc-ide/threemc documentation built on Feb. 9, 2024, 5:16 p.m.