spt_nb: Create time lagged spatial neighbors

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

spt_nbR Documentation

Create time lagged spatial neighbors

Description

Given a an spdep neighbor list (or any other list indicating row position) of neighbors in a spacetime object's geometry context, create a neighbor list across space and time in the data context.

Usage

spt_nb(nb, n_times, n_locs, k = 1)

Arguments

nb

a neighbors list created from a spacetime object's geometry context.

n_times

the number of time slices

n_locs

the number of locations

Details

Note that this should only be used for spacetime cubes.

This function is only available for internal development and should be used with extreme caution.

The number of bins is equal to n_times * n_locs where each location has a bin time-series with n_times observations. This is what makes it a spacetime cube function.

Value

a nb list

References

https://pro.arcgis.com/en/pro-app/2.8/tool-reference/space-time-pattern-mining/create-space-time-cube.htm

See Also

spt_wt() for converting spacetime neighbors to spacetime weights.


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