st_lag: Calculate spatial lag

View source: R/st_lag.R

st_lagR Documentation

Calculate spatial lag

Description

Calculate spatial lag

Usage

st_lag(x, nb, wt, allow_zero = NULL, na_ok = FALSE, ...)

Arguments

x

A numeric vector

nb

A neighbor list object as created by st_neighbors().

wt

A weights list as created by st_weights().

allow_zero

If TRUE, assigns zero as lagged value to zone without neighbors.

na_ok

Default FALSE. If, TRUE missing values return a lagged NA.

...

See ?spdep::lag.listw for more.

See Also

Other stats: geary_test(), local_moran(), moran_mc(), moran_test(), st_nb_dists()


JosiahParry/sfweight documentation built on April 4, 2022, 1:52 a.m.