Skip to content
Prev 23321 / 29559 Next

polygon neighbor matrix

On Mon, 31 Aug 2015, boB Rudis wrote:

            
If this answered the question, it would be OK. But it doesn't, as reading 
the link provided to the FlexScan documentation showed (not a matrix, 
but a ragged right-edged text array).

Using gTouches can work, especially if the returnDense=FALSE argument is 
used (ie. don't return a matrix), but can fail if snapping is needed. 
spdep::poly2nb is the preferred route, because it makes snapping possible, 
and because the nb S3 class is much more flexible than matrices.

Roger