listw2dgCMatrix | R Documentation |
Interface between Matrix class objects and weights list
listw2dgCMatrix(listw, zero.policy = NULL)
listw |
a |
zero.policy |
See |
Matrix class object: a sparse Matrix
Gianfranco Piras
data(columbus, package="spdep")
listw<-spdep::nb2listw(col.gal.nb)
spW<-listw2dgCMatrix(listw)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.