find_xj | R Documentation |
Find xj
values given a numeric vector, x
, and neighbors list, nb
.
find_xj(x, nb)
x |
a vector of any class |
nb |
a |
A list of length x
where each element is a numeric vector with the same length as the corresponding element in nb
.
nb <- st_contiguity(sf::st_geometry(guerry))
xj <- find_xj(guerry$crime_prop, nb)
xj[1:3]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.