Description Usage Arguments See Also
View source: R/spflow-simulations.R
Use the neighborhood matrices of origins and destinations to derive the three neighborhood matrices of the origin-destination flows. This function is used for simulations or for comparisons with the vectorized formulations of the model.
1 2 3 4 5 6 7 | expand_flow_neighborhood(
OW,
DW,
n_o = OW %|!|% nrow(OW),
n_d = DW %|!|% nrow(DW),
model = "model_9"
)
|
OW |
Origin neighborhood matrix |
DW |
Destination neighborhood matrix |
n_o |
A numeric indicating the number of origins |
n_d |
A numeric indicating the number of destinations |
model |
A character indicating the model identifier |
Other spflow simulation functions:
spatial_filter()
,
spflow_sim()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.