Code Monkey home page Code Monkey logo

Comments (4)

hrecht avatar hrecht commented on August 27, 2024

Hi, I'm not seeing a bug here. I get the same results with the raw API call:
https://api.census.gov/data/2017/pep/components?key=[KEY]&get=PERIOD&for=COUNTY&in=state%3A13
If data for 9 and 10 should be returned, it's not an issue from censusapi since it's returning the same thing as the underlying API. Adding PERIOD_DESC to the call, it says that period 8 is 2016 to 2017.

temp <- getCensus(name="pep/components",
vintage = 2017,
vars = c("PERIOD", "PERIOD_DESC"), 
region="COUNTY", 
regionin="state:13")

from censusapi.

hrecht avatar hrecht commented on August 27, 2024

Closing because this seems to be a misreading of the returned data, but I can reopen if I'm misunderstanding.

from censusapi.

CVIOG-Demography avatar CVIOG-Demography commented on August 27, 2024

Thanks. I looked at the PERIOD codes and I did confuse PERIOD 8 with (year ending in) 2015, when it is (year ending in ) 2017. So that was part of it. However, I posted this same issue over at tidyverse and Kyle looked into it and reported "As a notable aside - by setting year to 2018 you can get the most recent data now as I just pushed a fix due to a change in the API." So I do think that there was a change in the CB API. Even after his fix, I still can't pull all years unless I do it individually, whereas before I could. So it might be worth taking a second look at the API. Thanks for clarifying for me.

from censusapi.

hrecht avatar hrecht commented on August 27, 2024

2018 has been available through this package since the Census Bureau made it available; tidycensus is a different package. I'm glad you were able to find a solution.

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.