Comments (2)
I tend to pass c(state.abb, "DC")
to avoid typing out all the states when I want a national pull like this. And thank you for the kind words!
from tidycensus.
Following up to say, it seems I just have to explicitly name each state abbreviation as a list. Is there a more elegant way to do this? Thanks for supporting a great package!
FB_2021_ct <- get_acs(geography = "tract",
variables = c("B05001_001","B05001_005","B05001_006"),
output = "wide",
state=c("AL","AK","AZ","AR","CA","CO","CT",
"DE","FL","GA","HI","ID","IL","IN",
"IA","KS","KY","LA","ME","MD","MA",
"MI","MN","MS","MO","MT","NE","NV",
"NH","NJ","NM","NY","NC","ND","OH",
"OK","OR","PA","RI","SC","SD","TN",
"TX","UT","VT","VA","WA","WV","WI",
"WY"),
year=2021,
geometry = TRUE,
cache_table = TRUE)
Getting data from the 2017-2021 5-year ACS
Fetching tract data by state and combining the result.
|=====================================================================| 100%
|=====================================================================| 100%
|=====================================================================| 100%
|=====================================================================| 100%
|=====================================================================| 100%
from tidycensus.
Related Issues (20)
- `tidycensus::get_acs()` does not have the limitations that `tigris::zctas()` does for specifying `state` for a given `year`
- Pulling from multiple source tables with `get_acs()` causes erroneous NAs HOT 2
- Feature request to make "Margin of Error" optional in get_acs(). HOT 1
- get_decennial gives incorrect values for 2000 aian and aianprofile
- Connecticut data absent in county-level geography request HOT 2
- CBSA and CSA shape files do not exists for 2022 -- Need an error message staying that
- Does `interpolate_pw` use population-weighted areal interpolation? HOT 1
- get_acs for 2022 at the congressional district tries to use wrong layer HOT 2
- DP04 Missing DP04_0005P Variable HOT 1
- Error in get_decennial: API returning unknown variable error for variable returned from call to load_variables HOT 1
- decennial 1990 not available? HOT 1
- get_decennial(): GEOCOMP: inconsistent behavior HOT 1
- get_estimates show_call is not displaying HOT 2
- fips_codes has both 2020 and 2022 county boundaries for Connecticut HOT 2
- get_estimates() not parsing population at county level for Puerto Rico HOT 1
- Conflicting variable labels when using keep_geo_vars = T
- Is it possible to modify the rate_sleep() parameters for get_acs()? HOT 2
- Finding ZCTA variables HOT 1
- Plans to add ACS datasets that allow breakdown by pop group? Selected population profiles (spp), selected population detailed tables (spt), and selected population data profiles (sptprofile)
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 tidycensus.