get.flow.weights.within.distance: get.flow.weights.within.distance

Description Usage Arguments

View source: R/spW-fcns.R

Description

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.

Usage

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
)

Arguments

i

geoid with origin and dest in flow.counts.

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 spws with all areas within distance cutoff from each other

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.


kmcd39/divflow documentation built on Dec. 21, 2021, 7:38 a.m.