listw2dgCMatrix {sphet} | R Documentation |
Interface between Matrix class objects and weights list
Description
Interface between Matrix class objects and weights list
Usage
listw2dgCMatrix(listw, zero.policy = NULL)
Arguments
listw |
a |
zero.policy |
See |
Value
Matrix class object: a sparse Matrix
Author(s)
Gianfranco Piras gpiras@mac.com
Examples
library(spdep)
data(columbus)
listw <- nb2listw(col.gal.nb)
spW <- listw2dgCMatrix(listw)
[Package sphet version 2.0 Index]