Description Usage Arguments Details Value Examples
Makes an ACS table for a list of neighborhoods
1 2 | neighborhood_table(neighborhood_list, table.number, year = 2015, state = 9,
county = 9, blocks = F)
|
neighborhood_list |
A nested list of lists of tracts (and, optionally, block groups). Each outer list item should be given the name of its neighborhood, and each inner list item must have a FIPS code for a tract, with the name "tract"; see details for setup |
table.number |
String corresponding to an ACS table number; this is case-sensitive |
year |
Endyear of ACS estimates as a four-digit integer |
state |
Either a number corresponding to the state's FIPS code, or a string with the state's two-letter abbreviation or full name |
county |
Either a number corresponding to the county's FIPS code (safer), or a string with the county's name. Defaults to 09, FIPS code for New Haven County, Connecticut |
blocks |
Logical. If |
make_neighborhood
requires a nested list of lists structure. For neighborhoods that specify block groups, this should take the form:
1 2 3 |
For neighborhoods with only tracts specified:
1 2 3 |
Lists are nested to allow for neighborhoods spanning multiple tracts that may need to be paired with their block groups. Example:
1 2 3 4 5 |
Returns an acs-class
object, as is standard from the acs
package.
1 2 3 4 5 | beaver_hills_bg <- list(
list(tract = 141400, block.group = 1:4),
list(tract = 141300, block.group = 2)
)
beaver_hills_pop <- neighborhood_table(beaver_hills_bg, "B01003", blocks = T)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.