ww_make_point_neighbors {waywiser} | R Documentation |
Make 'nb' objects from point geometries
Description
This function uses spdep::knearneigh()
and spdep::knn2nb()
to
create a "nb" neighbors list.
Usage
ww_make_point_neighbors(data, k = 1, sym = FALSE, ...)
Arguments
data |
An |
k |
How many nearest neighbors to use in |
sym |
Force the output neighbors list (from |
... |
Other arguments passed to |
Details
These functions can be used for geographic or projected coordinate reference systems and expect 2D data.
Value
An object of class "nb"
Examples
ww_make_point_neighbors(ny_trees)
[Package waywiser version 0.6.0 Index]