st_dist_band | R Documentation |
Creates neighbors based on a distance band. By default, creates a distance band with the maximum distance of k-nearest neighbors where k = 1 (the critical threshold) to ensure that there are no regions that are missing neighbors.
st_dist_band(geometry, lower = 0, upper = critical_threshold(geometry), ...)
geometry |
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. By default is set to a critical threshold using |
... |
Passed to |
a list of class nb
Other neighbors:
st_contiguity()
,
st_knn()
geo <- sf::st_geometry(guerry)
st_dist_band(geo, upper = critical_threshold(geo))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.