Creates neighbors based on a distance band.
Arguments
- x
An sf or sfc object.
- lower
The lower threshold of the distance band. It is recommended to keep this as 0.
- upper
The upper threshold of the distance band.
- ...
Passed to
spdep::dnearneigh()
.
See also
Other neighbors:
st_contiguity()
,
st_knn()
Examples
st_nb_band(sf::st_geometry(guerry), upper = 97000)
#> ! Polygon provided. Using centroid.
#> Neighbour list object:
#> Number of regions: 85
#> Number of nonzero links: 7140
#> Percentage nonzero weights: 98.82353
#> Average number of links: 84