Get "flow weights," i.e., proportion of visitor/visited from other tracts
within distance threshold. Will use a precalculated distance matrix to filter
by distance if spatial.weights is supplied. Does not filter by distace if
it's left as null. Rounds to 4 digits for sparseness.
1 2 3 4 5 6 7 8 9 | get.flow.weights.within.distance(
i,
flow.type = c("incoming", "visited"),
drop.loops = T,
prox.col = "below.cutoff",
flow.counts = sfg,
spatial.weights = NULL,
weight.floor = 0.001
)
|
i |
geoid with origin and dest in |
flow.type |
Whether to get weights based on all visitors to i from other proximate areas (default); or based on all proximiate areas visited by people in area i. |
drop.loops |
Whether to drop loops (where origin==destination) |
prox.col |
name for list-column in |
flow.counts |
data.frame with origin/destination/estimated visits (n). |
weight.floor |
flow weight floor. Minimum percent of incoming/visited trips between tracts to be included. 0.1% by default. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.