Define neighbour relationships according to radial distance threshold between polygon centroids.

centroid_nb(poly, d.max = 40)

Arguments

poly

a sf data frame with polygon geometry

d.max

numeric, maximum distance accepted between polygon centroids to define neighbour relation

Value

weighted neighbour matrix in a listw object from spdep package

Details

Based on dnearneigh function from spdep package

See also

Other nb_funcs: knn_nb(), membrane_nb(), nb_expand(), nb_update(), queen_nb(), tri_nb()