Auxiliary function that uses functionality from spdep to retrieve first and second order neighbor weights.
geomerge.neighbor(polygon_input)
Returns a list of lists of neighbor weights named "wts1" and "wts2".
a SpatialPolygonsDataFrame
.
Karsten Donnay and Andrew M. Linke.
The function serves as a wrapper for the poly2nb
, nblag
and nb2listw
functions from spdep and returns first and second order neighbor weights using zero.policy = TRUE
.
Andrew M. Linke, Karsten Donnay. (2017). "Scale Variability Misclassification: The Impact of Spatial Resolution on Effect Estimates in the Geographic Analysis of Foreign Aid and Conflict." Paper presented at the International Studies Association Annual Meeting, February 22-25 2017, Baltimore.
geomerge-package
, geomerge
, generateGrid