pull_acs_basetables: Pull ACS base tables

Description Usage Arguments Value References Examples

View source: R/pull_synth_data.R

Description

A wrapper function to pull multiple base tables from ACS API via acs.fetch.

Usage

1
pull_acs_basetables(endyear, span, geography, table_vec)

Arguments

endyear

An integer, indicating the latest year of the data in the survey.

span

An integer in c(1,3,5) indicating the span of the desired data.

geography

a valid geo.set object specifying the census geography or geographies to be fetched.

table_vec

A character vector specifying ACS base tables.

Value

A 'macroACS' class object

References

https://www.census.gov/programs-surveys/acs/technical-documentation/summary-file-documentation.html

Examples

1
2
3
4
5
6
7
8
## Not run: 
# make geography
la_geo <- acs::geo.make(state= "CA", county= "Los Angeles")
# pull data 
la_dat <- pull_acs_basetables(endyear= 2015, span= 1, geography= la_geo, 
  table_vec= c("B01001", "B01002", "B01003"))

## End(Not run)

synthACS documentation built on July 2, 2020, 2:29 a.m.