st_nb_lag | R Documentation |
Identify higher order neighbors from a neighbor list. order
must be greater than 1. When order equals 2 then the neighbors of the neighbors list is returned and so forth. See Anselin's book was: "https://spatial.uchicago.edu" "/sites/spatial.uchicago.edu/files/1_introandreview_reducedsize.pdf" for an example.
st_nb_lag(nb, order)
nb |
A neighbor list object as created by |
order |
The order of neighbors. |
Utilizes spdep::nblag()
a list of class nb
Other other:
st_cardinalties()
,
st_nb_lag_cumul()
nb <- st_contiguity(sf::st_geometry(guerry))
st_nb_lag(nb, 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.