Comments (4)
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.
Closing because this seems to be a misreading of the returned data, but I can reopen if I'm misunderstanding.
from censusapi.
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.
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)
- Deprecate outdated/unnecessary named parameters from getCensus() to fix bug and be in line with package ethos HOT 1
- Add optional name and vintage parameters to listCensusApis()
- Fix CRAN note appearing on devel builds HOT 1
- Text updates in getting-started article
- 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
- Bug report: listCensusApis() URL changed? HOT 2
- Update documentation examples to use latest data releases
- Add more documentation on value labels HOT 2
- Add an FAQ section - suggestions welcomed HOT 1
- Upgrade to httr2
- Standardize and simplify function names to snake_case
- Split listCensusMetadata() into list_variables(), list_geographies(), list_values(), list_groups()
- Improve makeVarlist() and rename HOT 1
- Properly convert articles to non-vignette articles
- Create a package logo
- Create case study articles for how to use key datasets
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.