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.
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.
See also
spt_nb()
for creating spacetime neighbors which are inputs into spacetime weights