Get neighbours list from spatial objects. The output is similar to the function poly2nb
of the spdep
package, but uses sf
instead of sp
.
Arguments
- x
a shape object, i.e., a
sf
object or aSpatialPolygons(DataFrame)
(sp
package).
Get neighbours list from spatial objects. The output is similar to the function poly2nb
of the spdep
package, but uses sf
instead of sp
.
a shape object, i.e., a sf
object or a SpatialPolygons(DataFrame)
(sp
package).