Get neighbours list from spatial objects
Get neighbours list from spatial objects. The output is similar to the function poly2nb
of the spdep
package, but uses sf
instead of sp
.
get_neighbours(x)
x |
a shape object, i.e., a |
A list where the items correspond to the features. Each item is a vector of neighbours.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.