View source: R/spacetime-nb-wt.R
spt_wt | R Documentation |
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.
spt_wt(wt, nbt, n_times, n_locs, k)
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 |
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.
a weight list with same cardinality as nbt
spt_nb()
for creating spacetime neighbors which are inputs into spacetime weights
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.