[acs-r] Difficulty with worked example on blog

Peter Cowan cowan.pd at gmail.com
Sat Jun 1 13:45:21 EDT 2013


I'm trying to work the example at:

http://eglenn.scripts.mit.edu/citystate/2013/03/acs-r-a-worked-example-using-blockgroup-level-data/

There appears to be a problem with the acs.fetch function for me. I have
previously saved an API key file.

> my.tract=geo.make(state="MA", county="Middlesex",
+   tract=387201, block.group="*", check=T)
Testing geography item 1: Tract 387201, Blockgroup *, Middlesex County,
Massachusetts .... Error in seq.default(1, (length(in.data) - geo.length),
2) :
  wrong sign in 'by' argument
> my.tract=geo.make(state="MA", county="Middlesex",
+   tract=387201, block.group="*")
> total.pop=acs.fetch(geo=my.tract, table.number="B01003")
Error in seq.default(1, (length(in.data) - geo.length), 2) :
  wrong sign in 'by' argument

 Thanks

Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/mailman/private/acs-r/attachments/20130601/73494f26/attachment.htm


More information about the acs-r mailing list