sfg2gh: sfg2gh

Description Usage Arguments

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

Description

From a origin-destination data.frame representing safegraph data, turn it into a tidygraph object. Assumes origin, dest, and n columns. Also attaches geometry and calculates "normalized connectedness," which will be different if it's made undirected or left directed.

Usage

1
sfg2gh(sfg, directed = F, ...)

Arguments

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.)


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