[R] matrix to gal object

bernardo lagos alvarez blacertain at gmail.com
Fri Dec 21 20:20:18 CET 2007


useR's

I need transform the matrix

wdat
     [,1] [,2] [,3] [,4] [,5] [,6]
[1,]    0    1    0    1    1    0
[2,]    1    0    0    1    1    0
[3,]    0    0    0    0    1    1
[4,]    1    1    0    0    1    0
[5,]    1    1    1    1    0    0
[6,]    0    0    1    0    0    0


to  gal object. How I do with spdep?


Thanks in advance for the help.

Bernardo.
University  of Concepció.



More information about the R-help mailing list