Skip to content
Prev 351 / 29559 Next

exporting weiths matrix in .txt-file in spdep

On Tue, 22 Mar 2005, Mario Gellrich wrote:

            
For example:
num [1:49, 1:49] 0 1 1 0 0 0 0 0 0 0 ...
 - attr(*, "dimnames")=List of 2
  ..$ : chr [1:49] "1005" "1001" "1006" "1002" ...
  ..$ : NULL
 - attr(*, "call")= language nb2mat(neighbours = col.gal.nb, style = "B")
0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
....

For visualisation, this is nice, and scales to largish n:
Roger