powered by
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)
a list of class nb
nb
A neighbor list object as created by st_contiguity().
st_contiguity()
The order of neighbors.
Utilizes spdep::nblag_cumul()
spdep::nblag_cumul()
Other other: st_cardinalties(), st_nb_lag()
st_cardinalties()
st_nb_lag()
nb <- st_contiguity(sf::st_geometry(guerry)) st_nb_lag_cumul(nb, 3)
Run the code above in your browser using DataLab