Make 'nb' objects from polygon geometries
This function is an extremely thin wrapper around spdep::poly2nb()
, renamed to use the waywiser "ww" prefix.
ww_make_polygon_neighbors(data, ...)
data
: An sfc_POLYGON
or sfc_MULTIPOLYGON
object....
: Additional arguments passed to spdep::poly2nb()
.An object of class "nb"
These functions can be used for geographic or projected coordinate reference systems and expect 2D data.
ww_make_polygon_neighbors(guerry)
Useful links