Comments (7)
This code from the 2015 1-year ACS works fine for me. They released the new "acs/acs1" endpoint for 2015 a little while ago. So hopefully 2016 should be fine too!
getCensus(name="acs/acs1", vintage=2015, vars=c("B01001_001E", "NAME"), region="state:*")
To get the name
parameter for a given dataset, you can run
apis <- listCensusApis()
And look at the name
column for your dataset of choice. Similarly, my understanding is that the new annotation fields are structured like other variables - so you'd enter something like B01001_001A
in the vars
list. (But please correct me if I'm misremembering.)
The decimal place change also shouldn't break anything.
from censusapi.
Hi, I was wondering if you'd had a chance to check this out - mostly seems like it changes how it deals with annotation flags for missing values, controlled estimates, etc. But there also is a change to the url.
Here's the reminder email from Census, in case you didn't get it:
This is a reminder that the 2016 ACS 1-Year data will be released next Thursday. The data in the API will be released in a new format that includes the insertion of 'acs/' in the URI after the year and also includes separate annotation fields for each estimate (see guide for details). Also note that some of the 2016 ACS 1-Year annotation flags may include a decimal place (e.g., -8888888 to -8888888.0 or -8888888.00). This precision does not change the meaning of the annotation.
I use your package in my job literally every day, so thank you so much for all of your work on it!
from censusapi.
Hi @murray-cecile & @jcdepth - thanks for flagging. I won't be able to test until it's released, but please reply here with code if you run in to any issues. Since censusapi basically passes whatever you give it to the underlying API, the new endpoint should work.
It should look something like:
getCensus(name = "acs/acs1", vintage = 2016, ...)
I don't think there should be any issues with the annotation flags but we'll see on Thursday.
from censusapi.
As soon as I changed the endpoint, everything worked perfectly. Thanks again for creating this awesome package!
from censusapi.
Thanks for posting - I didn't get the email!
I'll have to investigate further, it might require some internal function rewrites.
from censusapi.
I've run a few basic tests and so far haven't run into any issues with the 2016 ACS. I'll leave this thread open for a little while in case anyone else does.
Here's an example getting total population and median household income estimate and margin of error, plus annotations. (Note there are no annotations for this one.)
dt <- getCensus(name = "acs/acs1",
vintage = 2016,
vars = c("B01001_001E", "B19013_001E", "B19013_001EA", "B19013_001M", "B19013_001MA", "NAME"),
region = "state:*")
head(dt)
from censusapi.
Closing since no issues have been reported. If anyone runs in to bugs related to the 2016 ACS changes please open a new issue. Thanks all.
from censusapi.
Related Issues (20)
- Bug report: HOT 3
- Pulling COUSUB in Decennial 2020 response rates HOT 1
- Bug report: Issue with Congressional District Call HOT 3
- Bug report:NAICS code labels coerced to NA HOT 12
- 1990 & 2000 decennial API endpoint update HOT 2
- Question HOT 1
- Rapidly Gathering Block Data HOT 4
- Bug report: unknown predicate variable: 'time' in SAIPE API call HOT 12
- Selecting Places within Counties within States HOT 1
- Update SAHIE examples to account for Census breaking changes
- Bug report: Example for SAHIE fails with 'unknown predicate variable' error HOT 5
- Bug report: Values returning NA HOT 2
- Feature request: option to not format columns as numeric HOT 1
- Feature request: ability to connect via proxy: like the use_proxy() function in the httr::GET HOT 1
- Bug report: Incorrect estimates reported when querying a long variable list HOT 6
- Bug report: Census surname API query fails HOT 2
- Bug report: CPS Basic variable names HOT 6
- Release v0.8.0
- Bug report: HOT 1
- Feature request: Make API key optional HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from censusapi.