This function uses spdep::knearneigh()
and spdep::knn2nb()
to
create a "nb" neighbors list.
Arguments
- data
An
sfc_POINT
orsfc_MULTIPOINT
object.- k
How many nearest neighbors to use in
spdep::knearneigh()
.- sym
Force the output neighbors list (from
spdep::knn2nb()
) to symmetry.- ...
Other arguments passed to
spdep::knearneigh()
.