create_area_aggregation | R Documentation |
Long data frame mapping area hierarchy areas to model level areas
create_area_aggregation(model_area_ids, areas, drop_partial_areas = TRUE)
model_area_ids |
vector of model areas. |
areas |
naomi_areas object. |
drop_partial_areas |
Drop areas from output if some children are missing (default TRUE). |
area_merged <- read_area_merged(system.file("extdata/demo_areas.geojson", package = "naomi"))
areas <- create_areas(area_merged = area_merged)
model_area_ids <- area_merged$area_id[area_merged$area_level == 4]
create_area_aggregation(model_area_ids, areas)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.