Description Usage Arguments Value See Also Examples
Makes an ACS table for state, regions, counties, and towns
| 1 | all_geo_table(town_lookup, table.number, year = 2015, regions, state = 9)
 | 
| town_lookup | A data.frame or tbl. Must have columns  | 
| 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 | 
Returns an acs-class object, as is standard from the acs package.
make_regional_geo, called by this function, and get_town_names, which returns a dataframe appropriate for town_lookup
| 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)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.