Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
I have three similar calls for 1990, 2000, and 2010. However, only the 2010 call produces an error. The error is shown below; note that it includes a path to sf3:
My code is below; only spok_vacant_2010 produces the error. The call assigned to test works fine:
The economic census began uploading today; maybe that's part of the issue? The error suggests the API call is being made to sf3.
A while back Census changed the variable names for many variables from the decennial Census via the API. This means that old code with the old variable names won't work. Generally, the new names have zeroes removed from the interior - which is the issue you are encountering. So, the following code works:
spok_vacant_2010 <- get_decennial(geography = "tract", variables = "H005001", county = "Spokane", year = 2010, state = "WA", key = key, sumfile = "sf1") spok_vacant_2010