spread_areas: Spread area hierarchy to wide format

View source: R/util.R

spread_areasR Documentation

Spread area hierarchy to wide format

Description

Spread area hierarchy to wide format

Usage

spread_areas(
  areas,
  min_level = min(areas$area_level),
  max_level = max(areas$area_level),
  space = TRUE
)

Arguments

areas

sf shapefiles for specific country/region.

min_level

integer specifying the minimum level wanted

max_level

integer specifying the maximum level wanted

space

whether to include "space" columns. Excluding these returns the same object as naomi::spread_areas, Default: TRUE


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