S4 methods for HexData objects. These provide standard R operations for accessing data, subsetting, and conversion.
# S4 method for HexData
grid_info(x)# S4 method for HexData
cells(x)
# S4 method for HexData
n_cells(x)
# S4 method for HexData
nrow(x)
# S4 method for HexData
ncol(x)
# S4 method for HexData
dim(x)
# S4 method for HexData
names(x)
# S4 method for HexData
$(x, name)
# S4 method for HexData
$(x, name) <- value
# S4 method for HexData
[(x, i, j, ..., drop = FALSE)
# S4 method for HexData
[[(x, i)
# S4 method for HexData,ANY,missing
[[(x, i, j) <- value
# S4 method for HexData
show(object)
# S4 method for HexData
as.data.frame(x, row.names = NULL, optional = FALSE, ...)
# S4 method for HexData
as.list(x, ...)
grid_info: HexGridInfo object containing grid specification
cells: Numeric vector of unique cell IDs
n_cells: Integer count of unique cells
nrow, ncol, dim: Integer dimensions
names: Character vector of column names (including virtual cell columns)
$, [[: The requested column or cell data as a vector
$<-, [[<-: The modified HexData object
[: Subsetted HexData object or extracted data
show: The object, invisibly (called for side effect of printing)
as.data.frame: Data frame with original data plus cell columns
as.list: Named list containing data, grid, cell_id, and cell_center
HexData object
Column name
Replacement value
Row/column indices
Additional arguments
Logical, whether to drop dimensions
HexData object (for show)
Optional row names
Logical (ignored)