Code Monkey home page Code Monkey logo

Comments (7)

hrecht avatar hrecht commented on August 27, 2024 2

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.

murray-cecile avatar murray-cecile commented on August 27, 2024 1

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.

hrecht avatar hrecht commented on August 27, 2024 1

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.

murray-cecile avatar murray-cecile commented on August 27, 2024 1

As soon as I changed the endpoint, everything worked perfectly. Thanks again for creating this awesome package!

from censusapi.

hrecht avatar hrecht commented on August 27, 2024

Thanks for posting - I didn't get the email!
I'll have to investigate further, it might require some internal function rewrites.

from censusapi.

hrecht avatar hrecht commented on August 27, 2024

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.

hrecht avatar hrecht commented on August 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.