Ram B
Ram B

Reputation: 167

Getting decennial census data using acs in r

I'm trying to get data from 2000 and 2010:

acs.fetch(endyear="2000",span="0", LA_tract, variable="H002_001", dataset="sf1")

Also tried:

acs.fetch(endyear="2000",span="0", LA_tract, table.name="H002", dataset="sf1")

(LA_tract is the geography)

I get an error:

Error in file(file, "rt") : cannot open the connection

The variable/table number is correct... The function and key work fine with ACS data - just not decade data.

I would appreciate any help with this issue.

Upvotes: 0

Views: 258

Answers (1)

SteveM49
SteveM49

Reputation: 61

span is the number of years in the survey. I've seen 5 and 3 and 1, but not 0.

Upvotes: 0

Related Questions