Monthly Archives: August 2015
Uncategorized / Comments Off on Making maps with ACS data
Uncategorized / Comments Off on A user asks…: acs.R and the 2013 census data
An acs.R user asks:
Are there any plans for 2013 data to be incorporated into the acs package?
Great question. Here is a great answer:
At present, the package is actually able to fetch the 2013 5-year ACS data, with two important caveats:
- you must specify the table number or variable number directly – you can’t use keywords, since the current version of the package lacks the correct lookup tables for 2013; and
- the acs.fetch function will give you some warnings about how “As of the date of this version of the acs package Census API did not provides data for selected endyear” – but you can safely ignore that.
See below for a basic example. (This said, I do want to release an updated version soon that will include the lookup tables and avoid the warnings.)
> acs.fetch(geography=geo.make(state=25, county="*"), table.number="B01003", endyear=2013) ACS DATA: 2009 -- 2013 ; Estimates w/90% confidence intervals; for different intervals, see confint() B01003_001 Barnstable County, Massachusetts 215449 +/- 0 Berkshire County, Massachusetts 130545 +/- 0 Bristol County, Massachusetts 549870 +/- 0 Dukes County, Massachusetts 16739 +/- 0 Essex County, Massachusetts 750808 +/- 0 Franklin County, Massachusetts 71408 +/- 0 Hampden County, Massachusetts 465144 +/- 0 Hampshire County, Massachusetts 159267 +/- 0 Middlesex County, Massachusetts 1522533 +/- 0 Nantucket County, Massachusetts 10224 +/- 0 Norfolk County, Massachusetts 677296 +/- 0 Plymouth County, Massachusetts 497386 +/- 0 Suffolk County, Massachusetts 735701 +/- 0 Worcester County, Massachusetts 802688 +/- 0 Warning messages: 1: In acs.fetch(geography = geo.make(state = 25, county = "*"), table.number = "B01003", : As of the date of this version of the acs package Census API did not provides data for selected endyear 2: In acs.fetch(endyear = endyear, span = span, geography = geography[], : As of the date of this version of the acs package Census API did not provides data for selected endyear