st_nb_lag_cumul | R Documentation |
Creates an encompassing neighbor list of the order specified. For example, if the order is 2 the result contains both 1st and 2nd order neighbors.
st_nb_lag_cumul(nb, order)
nb |
A neighbor list object as created by |
order |
The order of neighbors. |
Utilizes spdep::nblag_cumul()
a list of class nb
Other other:
st_cardinalties()
,
st_nb_lag()
nb <- st_contiguity(sf::st_geometry(guerry))
st_nb_lag_cumul(nb, 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.