Spread area hierarchy to wide format

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

Arguments

areas

area hierarchy data.frame

min_level

integer specifying the minimum level

max_level

integer specifying the maximum level

TODO: Make this an example - where is areas.rds? areas <- readRDS(system.file("extdata/areas/areas.rds", package = "naomi")) areas_wide <- spread_areas(areas)