ww_build_weights | R Documentation |
These functions can be used for geographic or projected coordinate reference systems and expect 2D data.
ww_build_weights(x, wt = NULL, include_self = FALSE, ...)
x |
Either an sf object or a "nb" neighbors list object.
If an sf object, will be converted into a neighbors list via
|
wt |
Either a "listw" object (which will be returned unchanged),
a function for creating a "listw" object from |
include_self |
Include each region itself in its own list of neighbors? |
... |
Arguments passed to the weight constructing function. |
A listw
object.
ww_build_weights(guerry)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.