setup.gh.wrapper: setup.gh.wrapper

Description Usage Arguments

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

Description

From a cz/cbsa identifier or an sf object, sets up a graph as all nodes surrounding the area. Built to create a graph within a bounding box.

Usage

1
setup.gh.wrapper(sfx = NULL, cz = NULL, cbsa = NULL, ...)

Arguments

...

Arguments passed on to sfx2sfg, sfg2gh, spatialize.graph, apply.flow.filters

sfx

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

sfg

OD dataframe

directed

whether to leave directed or make undirected (which aggregates trips to/from the same tracts, rather than duplicating the O-D pair for each direction.)

gh

a graph, as setup by sfg2gh

frame.sf

an sf object to crop to and use CRS from. Nodes outside the bbox of this area will be trimmed. Defaults to Lambert conformal conic projection if left null. (Why do I have all this complexity instead of just using coord_sf when mappi ng? Think I need to revise.. I think b/c i felt it allowed for more controlled trimming but..)

tracts.or.groups

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

min.tie.str

If not null, floor for tie strength

min.flows

minimum flows

tie.str.drop.deciles

If not null, number of deciles of tie str to keep after all other trims


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