is.in.city.center: is.in.city.center

Description Usage Arguments Value

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

Description

Given a tidy graph with tract centroid geometries, get each nodes' status as within or outside the city center, defined as the largest Place by population in the commuting zone. References a dataset bundled with divM that already pairs these population centers with commuting zones.

Usage

1
is.in.city.center(sfx, cz = NULL, filter2cc = FALSE, ...)

Arguments

sfx

a tidy graph with node centroids in a geometry column

cz

a cz corresponding with the graph; if left NULL, fcn will assume a column with the cz id exists for nodes already

filter2cc

Whether or not to filter or just add column

Value

a tidy graph with new in.cc column for nodes, based on whether or not they are in a population center. If filter2cc is TRUE, only keeps nodes within population center


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