getStateACS: Scraping data from the U.S. Census Bureau's American...

Description Usage Arguments Details Value Note Author(s) Examples

View source: R/getStateACS.R

Description

Scrape personal or household data for any state and any year(s) in the American Community Survey (ACS) https://www.census.gov/programs-surveys/acs/

Usage

1

Arguments

start

starting year (e.g. 2011)

end

ending year (e.g. 2011)

state

state abbreviation (e.g. "IA" for Iowa)

type

personal ("p") or household ("h") data

save

save csv files of each year's data to your directory. Defaults to FALSE.

Details

The Census Bureau stores the data at https://www2.census.gov/programs-surveys/acs/data/pums/

ACS PUMS documentation can be found at https://www.census.gov/programs-surveys/acs/technical-documentation/pums/documentation.html

Value

list of data frames, one for each year

Note

This package uses the function download.file() from base R's utils package

Author(s)

Lawrence R De Geest, lrdegeest@gmail.com

Examples

1
2
# Get personal data from Iowa for years 2001 to 2016:
p.data <- getStateACS(2001, 2016, state = "IA", type = "personal")

lrdegeest/StateACS documentation built on May 24, 2019, 8:48 p.m.