[acs-r] Issue with 2012-2016 ACS data retrieval
Sara Hintze
shintze at MARC.ORG
Thu Dec 14 10:07:27 EST 2017
Hi there,
I am attempting to acquire the 2012-2016 ACS data and the scripts I've created to download previous ACS datasets are not working. I ran these against the 2016, 1-year data back in September, and they worked fine. However, now they error out on both the 1-year and 5-year 2016 datasets. On a simple lookup, I get the following:
acs.lookup(table.number="B01001", span=5, endyear=2016)
Error in data.frame(variable.code = names, table.number = table.numbers, :
arguments imply differing number of rows: 13, 25
However, if I include the keyword attribute as follows, it works just fine:
acs.lookup(endyear=2016, span=5, table.number="B01001", keyword="Female")
An object of class "acs.lookup"
endyear= 2016 ; span= 5
results:
variable.code table.number table.name variable.name
1 B01001_026 B01001 SEX BY AGE Estimate Total Female
2 B01001_030 B01001 SEX BY AGE Estimate Total Female 15 to 17 years
3 B01001_034 B01001 SEX BY AGE Estimate Total Female 22 to 24 years
4 B01001_038 B01001 SEX BY AGE Estimate Total Female 40 to 44 years
5 B01001_042 B01001 SEX BY AGE Estimate Total Female 60 and 61 years
6 B01001_046 B01001 SEX BY AGE Estimate Total Female 70 to 74 years
7 B01001_026 B01001 SEX BY AGE Estimate Total Female
8 B01001_030 B01001 SEX BY AGE Estimate Total Female 15 to 17 years
9 B01001_034 B01001 SEX BY AGE Estimate Total Female 22 to 24 years
10 B01001_038 B01001 SEX BY AGE Estimate Total Female 40 to 44 years
11 B01001_042 B01001 SEX BY AGE Estimate Total Female 60 and 61 years
12 B01001_046 B01001 SEX BY AGE Estimate Total Female 70 to 74 years
Also, changing the endyear attribute to 2015, for example, works just fine. Any thoughts on what may be going on?
Thanks,
Sara
Sara Hintze
GIS Data Developer/Analyst | Research Services
Mid-America Regional Council
600 Broadway Blvd., Ste 200
Kansas City, MO 64105
816-701-8220 | www.marc.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/acs-r/attachments/20171214/b5d7e0c7/attachment.html
More information about the acs-r
mailing list