Define neighbour relationships according to contact distance treshold between polygon borders.

membrane_nb(poly, d.max = 0)

Arguments

poly

a sf data frame with polygon geometry

d.max

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

Value

weighted neighbour matrix in a listw object from spdep package

Details

Based on polygon intersection check done with st_intersects() function from sf package. When minimum distance is higher than 0, a round buffer of size max.dist/2 is applied to all polygons before calling st_intersects()

See also

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