from_dggrid: Convert 'dggridR' grid object to hexify_grid

View source: R/dggrid_compat.R

from_dggridR Documentation

Convert 'dggridR' grid object to hexify_grid

Description

Creates a hexify_grid object from a 'dggridR' dggs object. This allows using hexify functions with grids created by 'dggridR' dgconstruct().

Usage

from_dggrid(dggs)

Arguments

dggs

A 'dggridR' grid object from dgconstruct()

Details

Only 'ISEA' projection with HEXAGON topology is fully supported. Other configurations will generate warnings.

The function validates that the 'dggridR' grid uses compatible settings:

  • Projection must be 'ISEA' (FULLER not supported)

  • Topology must be "HEXAGON" (DIAMOND, TRIANGLE not supported)

  • Aperture must be 3, 4, or 7

Value

A hexify_grid object

See Also

Other 'dggridR' compatibility: as_dggrid(), dggrid_43h_sequence(), dggrid_is_compatible()


hexify documentation built on March 1, 2026, 1:07 a.m.