regional_table: Make ACS table for a region of towns

Description Usage Arguments Value See Also Examples

Description

Makes ACS table aggregated across a region of towns

Usage

1
2
regional_table(town_list, name = "Aggregate", town_lookup, state = 9,
  table.number, year = 2015)

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 9, FIPS code for Connecticut

table.number

String corresponding to an ACS table number; this is case-sensitive

year

Endyear of ACS estimates as a four-digit integer

Value

Returns an acs-class object, as is standard from the acs package.

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)
inner_ring_pops <- regional_table(inner_ring, name = "Inner Ring", ct_towns,
  table.number = "B01003")

CT-Data-Haven/acsprofiles documentation built on June 13, 2019, 8:20 a.m.