create_aggregate_structure: Create a List containing the Hierarchy of levels

View source: R/util.R

create_aggregate_structureR Documentation

Create a List containing the Hierarchy of levels

Description

Create a list containing all the area dependencies and number of for each area in the hierarchy

Usage

create_aggregate_structure(areas, area_lev)

Arguments

areas

sf shapefiles for specific country/region.

area_lev
  • Desired admin boundary level to perform the analysis on.

Value

A list of length 2 containing:

  • "sub_region_list"A list of the specific sub-regions contained within each space (i.e. for each area_id) (including itself)

  • "n_links_df"A dataframe with 2 columns, area_id and ndep, detailing the number of sub-regions contained within each area_id (also including itself)


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