ww_build_weights {waywiser} | R Documentation |
Build "listw" objects of spatial weights
Description
These functions can be used for geographic or projected coordinate reference systems and expect 2D data.
Usage
ww_build_weights(x, wt = NULL, include_self = FALSE, ...)
Arguments
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. |
Value
A listw
object.
Examples
ww_build_weights(guerry)
[Package waywiser version 0.6.0 Index]