spt_wt: Create time lagged spatial weights

View source: R/spacetime-nb-wt.R

spt_wtR Documentation

Create time lagged spatial weights

Description

Given a space-time-lagged neighbor list and a weights lists, e.g. made by st_dist_band() or st_contiguity(), create a corresponding weights list.

Usage

spt_wt(wt, nbt, n_times, n_locs, k)

Arguments

wt

a weights lists created from a spacetime object's geometry context.

nbt

a time-lagged spatial neighbors list created by spt_nb()

n_times

the number of time slices

n_locs

the number of locations

Details

It is intended that spt_wt() is used following the use of spt_nb() using the same input arguments. This ensures that the time-lagged spatial weights are correctly associated with the time-lagged spatial neighbors.

Value

a weight list with same cardinality as nbt

See Also

spt_nb() for creating spacetime neighbors which are inputs into spacetime weights


sfdep documentation built on Sept. 13, 2024, 5:07 p.m.