a5_compact: Compact a set of A5 cells

View source: R/compact.R

a5_compactR Documentation

Compact a set of A5 cells

Description

Merges complete sibling groups into their common parent, reducing the number of cells while preserving coverage.

Usage

a5_compact(cells)

Arguments

cells

An a5_cell vector.

Value

An a5_cell vector of compacted cells.

See Also

a5_uncompact()

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

a5R documentation built on March 26, 2026, 5:10 p.m.