Returns the child cells at a finer resolution.
Value
List of vectors of child cell IDs, one per input
cell; with as_sf = TRUE, an sf object with columns
parent_id, cell_id and geometry.
Examples
grid <- hex_grid(resolution = 3, aperture = 4)
parent <- lonlat_to_cell(10, 50, grid)
get_children(parent, grid)
kids <- get_children(parent, grid, levels = 2, as_sf = TRUE)
plot(sf::st_geometry(kids))
plot(sf::st_geometry(cell_to_sf(parent, grid)), border = "red", add = TRUE)