all_geo_table: Make ACS table for several geos

Description Usage Arguments Value See Also Examples

Description

Makes an ACS table for state, regions, counties, and towns

Usage

1
all_geo_table(town_lookup, table.number, year = 2015, regions, state = 9)

Arguments

town_lookup

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

table.number

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

year

Endyear of ACS estimates as a four-digit integer

regions

A named list of character vectors with names of towns for each region

state

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

Value

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

See Also

make_regional_geo, called by this function, and get_town_names, which returns a dataframe appropriate for town_lookup

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
ct_towns <- get_town_names(state = 9)
regions <- list(
  "Greater New Haven" = c("Hamden", "East Haven", "West Haven", "Milford",
    "Orange", "Bethany", "Woodbridge", "North Haven", "Branford",
    "North Branford", "Madison", "Guilford", "New Haven"),
  "Inner Ring" = c("Hamden", "East Haven", "West Haven"),
  "Outer Ring" = c("Milford", "Orange", "Bethany", "Woodbridge",
    "North Haven", "Branford", "North Branford", "Madison", "Guilford")
)
populations <- all_geo_table(ct_towns, "B01003", 2015, regions = regions,
  state = 9)

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