spt_wt {sfdep} | R 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 |
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
[Package sfdep version 0.2.4 Index]