st_nb_lag: Pure Higher Order Neighbors

View source: R/neighbors.R

st_nb_lagR Documentation

Pure Higher Order Neighbors

Description

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 slides for an example.

Usage

st_nb_lag(nb, order)

Arguments

nb

A neighbor list object as created by st_contiguity().

order

The order of neighbors.

Details

Utilizes spdep::nblag()

Value

a list of class nb

See Also

Other other: st_cardinalties(), st_nb_lag_cumul()

Examples

nb <- st_contiguity(sf::st_geometry(guerry))
st_nb_lag(nb, 3)

sfdep documentation built on Jan. 11, 2023, 9:08 a.m.