make_regional_geo: Create regional geography

Description Usage Arguments Value See Also Examples

View source: R/make_regional_geo.R

Description

Merge towns into an ACS geo set

Usage

1
make_regional_geo(town_list, name = "Aggregate", town_lookup, state = 9)

Arguments

town_list

A character vector of the names or FIPS codes of towns in the region

name

Name of the region. Defaults to "Aggregate"

town_lookup

A data.frame or tbl. Must have columns town and county, as generated by get_town_names

state

Either a number corresponding to the state's FIPS code, or a string with the state's two-letter abbreviation or full name. Defaults to 09, FIPS code for Connecticut

Value

Returns a geo.set object.

See Also

get_town_names, which returns a dataframe of towns and countied formatted for town_lookup

Examples

1
2
3
4
inner_ring <- c("Hamden", "East Haven", "West Haven")
ct_towns <- get_town_names(state = 9, year = 2015)
ir_geo <- make_regional_geo(inner_ring, name = "Inner Ring",
  town_lookup = ct_towns, state = 9)

CT-Data-Haven/acsprofiles documentation built on June 10, 2017, 5 a.m.