as.matrix.Weight {rgeoda} | R Documentation |
spatial weights to matrix
Description
Convert a GeoDa spatial weights object to a Matrix object
Usage
## S3 method for class 'Weight'
as.matrix(x, rownames = NULL, rownames.value = NULL, ...)
Arguments
x |
A weights object |
rownames |
optional, a single column name or column number to use as the rownames in the returned matrix. If TRUE the key of the data.table will be used if it is a single column, otherwise the first column in the data.table will be used. |
rownames.value |
optional, a vector of values to be used as the rownames in the returned matrix. It must be the same length as nrow(x). |
... |
Required to be present because the generic 'as.matrix' generic has it. Arguments here are not currently used or passed on by this method. |
Value
A matrix object
[Package rgeoda version 0.0.10-4 Index]