aggregate_flows: Aggregate flows to specified geography

Description Usage Arguments Details Value Examples

View source: R/aggregate_flows.R

Description

Aggregate flows to specified geography

Usage

1
aggregate_flows(geography = c("state", "county"))

Arguments

geography

one of c("state", "county") specifying the level of aggregation desired.

Details

This function uses dplyr's efficient interfaces to aggregate the flows to a specified geographic level. The flow estimates are summed, and the margins of error are aggregated using Census' recommended formula,

√{∑_i (x_i^2)}

Value

a tbl_df(data_frame) with the ctpp_flows flow data aggregated to the specified geographic level.

Examples

1
aggregate_flows("state")

gregmacfarlane/ctpp_flows documentation built on May 24, 2021, 11:05 a.m.