Skip to contents

An S4 class representing hexified data. Contains the original user data plus cell assignments from the hexification process.

Details

HexData objects are created by hexify. The original data is preserved in the data slot, while cell assignments are stored separately in cell_id and cell_center.

Use as.data.frame() to get a combined data frame with cell columns.

Slots

data

Data frame or sf object. The original user data (untouched).

grid

HexGridInfo object. The grid specification used.

cell_id

Numeric vector. Cell IDs for each row of data.

cell_center

Matrix. Two-column matrix (lon, lat) of cell centers.

See also

hexify for creating HexData objects, HexGridInfo-class for grid specifications