Forward -> quantize (Z3) -> center (face) -> inverse to lon/lat. Optionally return polygons (sf), in which case sf must be installed.
hexify_assign(
lon,
lat,
effective_res,
match_dggrid_parity = TRUE,
make_polygons = FALSE
)data.frame with id, face, effective_res, center_lon, center_lat; if make_polygons=TRUE, an sf with geometry column.
numeric vectors (same length), degrees.
integer effective resolution (>= 1).
logical; TRUE matches 'ISEA3H' parity used by 'dggridR'.
logical; if TRUE, return an sf with hex polygons.