Open JPRayes opened 2 years ago
You may have already tried this, but I would try re-running the chunk where you run your census key. The error sounds like it's an issue accessing the data.
@dholford I did try re-running it and still get the same error. Thanks for the help though.
The only other thing I can think of that wouldn't be on the API end would be making sure there's nothing wrong with where you named state.fips and county.fips. If there's something off in there it would be the root of the issue.
It's helpful if you show your workflow or at least inputs. For example, what does this print?
county.fips[ state.fips == "8" ]
I suspect it is using 8 instead of 08.
state = "8"
# vs
state = "08"
Or similarly, if the state.fips is stored as a character vector then you might be returning an empty list of county FIPS.
county.fips[ state.fips == "8" ]
# vs
county.fips[ state.fips == "08" ]
If it's not working break the steps apart and run them one at a time. It's the best way to really start understanding the code.
@lecy Thanks for the help. It was the state identifier. I used "8" instead of "08"
Super annoying convention, but its standard for Census data and Shapefiles so what we are stuck with!
Not sure what I'm doing wrong here:
CHUNK:
Error:
Error: Your API call has errors. The API message returned is error: invalid 'in' argument.
Appreciate any feedback