Merges complete sibling groups into their common parent, reducing the number of cells while preserving coverage.
Arguments
- cells
An a5_cell vector.
Value
An a5_cell vector of compacted cells.
Examples
cell <- a5_lonlat_to_cell(-3.19, 55.95, resolution = 5)
children <- a5_cell_to_children(cell)
a5_compact(children) # back to the parent
#> <a5_cell[1]>
#> [1] 633e000000000000