sfx2sfg: sfx2sfg

Description Usage Arguments

View source: R/graph-and-ergm-fcns.R

Description

From a given sf object, get correspondence with commuting zones, and load all safegraph data for trips with origins at those commuting zones. For now, just done for annual, but we could make this monthly. If you want to start with just CZs, just use sfg.seg::read.sfg.CZs.

Usage

1
sfx2sfg(sfx, year = 2019, ...)

Arguments

sfx

an sf object within bounds of which to load all flows.

...

Arguments passed on to load.sfg

min.flows

flow floor to immediately filter to. Default 10.

trim.loops

whether to trim loops, where origin==dest. Default true.

year

year to load for. Default 2019.

ddir

location of safegraph data, saved by cz.

sfg.dir

location of safegraph data, saved by cz.

tracts.or.groups

Aggregate to census tract (ct) or leave at block group (bg)


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