| build_h3_maps | R Documentation |
Creates basic parent–child relationships for a multiresolution H3 planning-unit dataset. This is the core structure used by all cross-scale operations.
build_h3_maps(s_or_h3, res_vec = NULL, res_levels = NULL)
s_or_h3 |
Either an |
res_vec |
Optional integer vector of resolutions if |
res_levels |
Optional integer vector of reporting resolutions. |
A list with elements h3_vec, res_vec, res_levels,
row_idx_by_h3, nearest_parent_row_of, and children_by_row.
# Minimal example: two resolutions, parent-child relationship
h3_child <- "8a2a1072b59ffff" # example H3 index
h3_parent <- "872a1072bffffff"
maps <- build_h3_maps(
s_or_h3 = c(h3_parent, h3_child),
res_vec = c(7L, 8L),
res_levels = c(7L, 8L)
)
str(maps, max.level = 1)
maps$nearest_parent_row_of
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.