a5_cell_to_children: Get child cells

View source: R/hierarchy.R

a5_cell_to_childrenR Documentation

Get child cells

Description

Returns the child cells of a single cell. By default returns the 4 immediate children (one resolution finer). Optionally target a specific finer resolution.

Usage

a5_cell_to_children(cell, resolution = NULL)

Arguments

cell

A single a5_cell value.

resolution

Integer scalar target child resolution, or NULL for immediate children.

Value

An a5_cell vector of child cells.

See Also

a5_cell_to_parent(), a5_get_resolution()

Examples

cell <- a5_lonlat_to_cell(-3.19, 55.95, resolution = 5)
a5_cell_to_children(cell)

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