spread_areas | R Documentation |
Spread area hierarchy to wide format
spread_areas(
areas,
min_level = min(areas$area_level),
max_level = max(areas$area_level)
)
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) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.