Description Usage Arguments Details Value Note Author(s) Examples
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/
1 |
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. |
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
list of data frames, one for each year
This package uses the function download.file() from base R's utils package
Lawrence R De Geest, lrdegeest@gmail.com
1 2 | # Get personal data from Iowa for years 2001 to 2016:
p.data <- getStateACS(2001, 2016, state = "IA", type = "personal")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.