Define neighbour relationships according to K-nearest neighbour algorithm.
knn_nb(poly, k = 20)
weighted neighbour matrix in a listw object from spdep package
based on knearneigh function from spdep package
Other nb_funcs:
centroid_nb()
,
membrane_nb()
,
nb_expand()
,
nb_update()
,
queen_nb()
,
tri_nb()