ww_make_point_neighbors | R Documentation |
This function uses spdep::knearneigh()
and spdep::knn2nb()
to
create a "nb" neighbors list.
ww_make_point_neighbors(data, k = 1, sym = FALSE, ...)
data |
An |
k |
How many nearest neighbors to use in |
sym |
Force the output neighbors list (from |
... |
Other arguments passed to |
These functions can be used for geographic or projected coordinate reference systems and expect 2D data.
An object of class "nb"
ww_make_point_neighbors(ny_trees)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.