| HexData-methods | R Documentation |
S4 methods for HexData objects. These provide standard R operations for accessing data, subsetting, and conversion.
## S4 method for signature 'HexData'
grid_info(x)
## S4 method for signature 'HexData'
cells(x)
## S4 method for signature 'HexData'
n_cells(x)
## S4 method for signature 'HexData'
nrow(x)
## S4 method for signature 'HexData'
ncol(x)
## S4 method for signature 'HexData'
dim(x)
## S4 method for signature 'HexData'
names(x)
## S4 method for signature 'HexData'
x$name
## S4 replacement method for signature 'HexData'
x$name <- value
## S4 method for signature 'HexData'
x[i, j, ..., drop = FALSE]
## S4 method for signature 'HexData'
x[[i]]
## S4 replacement method for signature 'HexData,ANY,missing'
x[[i, j]] <- value
## S4 method for signature 'HexData'
show(object)
## S4 method for signature 'HexData'
as.data.frame(x, row.names = NULL, optional = FALSE, ...)
## S4 method for signature 'HexData'
as.list(x, ...)
x |
HexData object |
name |
Column name |
value |
Replacement value |
i, j |
Row/column indices |
... |
Additional arguments |
drop |
Logical, whether to drop dimensions |
object |
HexData object (for show) |
row.names |
Optional row names |
optional |
Logical (ignored) |
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.