grid_rect: Generate a rectangular grid of hexagons
Description
Creates hexagon polygons covering a rectangular geographic region.
For H3 grids, all cells that overlap the bounding box are included
(not just cells whose center falls inside), ensuring full spatial coverage.
Usage
grid_rect(bbox, grid)
Value
sf object with hexagon polygons
Arguments
bbox
Bounding box as c(xmin, ymin, xmax, ymax), or an sf/sfc object
grid
A HexGridInfo object specifying the grid parameters