pull_synth_data: Pull ACS data for synthetic data creation.

Description Usage Arguments Value See Also Examples

View source: R/pull_synth_data.R

Description

Pull ACS data for a specified geography from base tables B01001, B02001, B12002, B15001, B06001, B06010, B23001, B17005, and B17005. These tables reference population counts by a number of slices. Multiple additional fields, mainly percentages and aggregations, are calculated.

Usage

1
pull_synth_data(endyear, span, geography)

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.

Value

A list containing the endyear, span, a list of data.frames of estimates, a list of data.frames of standard errors, and the geography metadata from acs.fetch.

See Also

acs.fetch, geo.make

Examples

1
2
3
4
5
6
7
## Not run: 
# make geography
la_geo <- acs::geo.make(state= "CA", county= "Los Angeles", tract= "*")
# pull data elements for creating synthetic data
la_dat <- pull_synth_data(2014, 5, la_geo)

## End(Not run)

alexWhitworth/synthACS documentation built on July 21, 2018, 4:11 p.m.