This function returns a neighborhood matrix from a polygons GVector
, which represents which geometries touch one another. It is useful for implementing geostatistical analyses that require indicators about which area features are next to one another.
Polygons must share more than one point for them to be considered a neighbors (i.e., same as spdep::poly2nb(x, queen = FALSE)
).
This function needs the GRASS addon v.neighborhoodmatrix
. If it is not installed, it will try to install it.