amccammack
amccammack

Reputation: 53

Error when fetching acs data

Can anyone help with this error? I am trying to download population data. I am not sure what this error is about. Here is my code.

state.IN=geo.make(state="IN")
indiana.total.pop=acs.fetch(geography=state.IN,table.number="B01003")

Error in seq.default(1, (length(in.data) - geo.length), 2) : wrong sign in 'by' argument

Upvotes: 4

Views: 928

Answers (2)

user13887317
user13887317

Reputation: 1

i changed the endyear from 2011 to 2014 and it fixed it for me

Upvotes: 0

Brent Brewington
Brent Brewington

Reputation: 468

Make sure you run acs::api.key.install("YOUR CENSUS KEY") before working with any of the acs functions. I was getting the same error, and once I fixed my api key install, it resolved the issue

Upvotes: 2

Related Questions