Obtain data and feature geometry for the five-year American Community Survey
get_acs(geography, variables, endyear = 2015, output = "tidy",
state = NULL, county = NULL, geometry = FALSE, keep_geo_vars = FALSE,
summary_var = NULL, key = NULL, moe_level = 90, ...)
The geography of your data.
Character string or vector of character strings of variable IDs. tidycensus automatically returns the estimate and the margin of error associated with the variable.
The endyear of the ACS sample. 2010 through 2015 are available. Defaults to 2015 (for 2011-2015)
One of "tidy" (the default) in which each row represents an enumeration unit-variable combination, or "wide" in which each row represents an enumeration unit and the variables are in the columns.
The state for which you are requesting data. State names, postal codes, and FIPS codes are accepted. Defaults to NULL.
The county for which you are requesting data. County names and FIPS codes are accepted. Must be combined with a value supplied to `state`. Defaults to NULL.
if FALSE (the default), return a regular tibble of ACS data. if TRUE, uses the tigris package to return an sf tibble with simple feature geometry in the `geometry` column. state, county, tract, block group, block, and ZCTA geometry are supported.
if TRUE, keeps all the variables from the Census shapefile obtained by tigris. Defaults to FALSE.
Character string of a "summary variable" from the ACS to be included in your output. Usually a variable (e.g. total population) that you'll want to use as a denominator or comparison.
Your Census API key. Obtain one at http://api.census.gov/data/key_signup.html
The confidence level of the returned margin of error. One of 90 (the default), 95, or 99.
Other keyword arguments
A tibble or sf tibble of ACS data