Learn R Programming

hexify (version 0.3.8)

hexify_h_index_to_lonlat: Convert hierarchical index strings to longitude/latitude centers

Description

Converts hierarchical cell index strings back to geographic coordinates, returning the center point of each cell. This is the inverse operation of hexify_lonlat_to_h_index().

Usage

hexify_h_index_to_lonlat(grid, h_index)

Value

Data frame with columns:

lon

Longitude in degrees

lat

Latitude in degrees

Arguments

grid

Grid specification from hexify_grid()

h_index

Hierarchical index strings (character vector)

Details

Most users should use hexify_cell_to_lonlat or hexify_grid_cell_to_lonlat which work with DGGRID-compatible integer cell IDs.