Description Usage Arguments Value See Also Examples
Makes ACS table aggregated across a region of towns
1 2 | regional_table(town_list, name = "Aggregate", town_lookup, state = 9,
table.number, year = 2015)
|
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 |
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 |
Returns an acs-class
object, as is standard from the acs
package.
get_town_names
, which returns a dataframe of towns and countied formatted for town_lookup
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.