% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/compact.R
\name{a5_compact}
\alias{a5_compact}
\title{Compact a set of A5 cells}
\usage{
a5_compact(cells)
}
\arguments{
\item{cells}{An \link{a5_cell} vector.}
}
\value{
An \link{a5_cell} vector of compacted cells.
}
\description{
Merges complete sibling groups into their common parent, reducing the
number of cells while preserving coverage.
}
\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
}
\seealso{
\code{\link[=a5_uncompact]{a5_uncompact()}}
}
