Comments (5)
I can't reproduce your error - your code works for me. Can you provide the results of your sessionInfo()
?
from tidycensus.
Oh, interesting!
FYI: Error occurs also with the Github version.
sessionInfo()
R version 3.4.2 (2017-09-28)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Antergos Linux
Matrix products: default
BLAS: /usr/lib/libblas.so.3.8.0
LAPACK: /usr/lib/liblapack.so.3.8.0
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] bindrcpp_0.2 sf_0.5-5 raster_2.6-7 sp_1.2-5 tidycensus_0.3.1 memuse_4.0-0
[7] prompt_1.0.0 mapview_2.2.0 leaflet_1.1.0 forcats_0.2.0 stringr_1.2.0 dplyr_0.7.4
[13] purrr_0.2.4 readr_1.1.1 tidyr_0.7.2 tibble_1.3.4 ggplot2_2.2.1.9000 tidyverse_1.2.1
[19] pacman_0.4.6
loaded via a namespace (and not attached):
[1] nlme_3.1-131 satellite_1.0.1 devtools_1.13.4 lubridate_1.7.1 webshot_0.4.2 httr_1.3.1
[7] rprojroot_1.2 backports_1.1.1 tools_3.4.2 rgdal_1.2-16 R6_2.2.2 rgeos_0.3-26
[13] DBI_0.7 lazyeval_0.2.1 colorspace_1.3-2 withr_2.1.0 tidyselect_0.2.3 mnormt_1.5-5
[19] curl_3.0 compiler_3.4.2 cli_1.0.0 rvest_0.3.2 xml2_1.1.9000 scales_0.5.0
[25] classInt_0.1-24 psych_1.7.8 rappdirs_0.3.1 digest_0.6.12 foreign_0.8-69 rmarkdown_1.8
[31] R.utils_2.6.0 base64enc_0.1-3 pkgconfig_2.0.1 htmltools_0.3.6 htmlwidgets_0.9 rlang_0.1.4.9000
[37] readxl_1.0.0 xaringan_0.4.3 rstudioapi_0.7 shiny_1.0.5 bindr_0.1 jsonlite_1.5
[43] crosstalk_1.0.0 R.oo_1.21.0 magrittr_1.5 Rcpp_0.12.14 munsell_0.4.3 R.methodsS3_1.7.1
[49] stringi_1.1.6 yaml_2.1.14 plyr_1.8.4 grid_3.4.2 maptools_0.9-2 parallel_3.4.2
[55] crayon_1.3.4 udunits2_0.13 lattice_0.20-35 haven_1.1.0 hms_0.4.0 knitr_1.17
[61] uuid_0.1-2 gdalUtils_2.0.1.7 reshape2_1.4.2 codetools_0.2-15 clisymbols_1.2.0 stats4_3.4.2
[67] servr_0.8 glue_1.2.0 evaluate_0.10.1 modelr_0.1.1 png_0.1-7 httpuv_1.3.5
[73] foreach_1.4.3 cellranger_1.1.0 gtable_0.2.0 assertthat_0.2.0 mime_0.5 xtable_1.8-2
[79] broom_0.4.3 e1071_1.6-8 class_7.3-14 viridisLite_0.2.0 iterators_1.0.8 tigris_0.5.3
[85] memoise_1.1.0 units_0.4-6
from tidycensus.
I can't reproduce this specific error either, but I think I've had some issues with certain variables when I include the "E" suffix. Do you get the same error with the following code?
df = get_acs(variables = c("B16008_002", "B19013_001", "B07401_001",
"B13002_002", "B24121_255"), geometry = TRUE,
geography = "state",
output = "wide")
from tidycensus.
@mfherman Yes I do, although the error takes a bit longer to occur.
Here's the traceback, I might dig a bit into it when I have time. Looks like a local problem then..
16: chr(...)
15: lapply(.x, .f, ...)
14: map(chr(...), sym)
13: syms(tbl_if_vars(.tbl, .p, .env, ...))
12: tbl_if_syms(.tbl, .predicate, .env)
11: manip_if(.tbl, .predicate, .funs, enquo(.funs), caller_env(),
...)
10: mutate_if(., grepl("*M$", names(.)), funs(moex))
9: function_list[[k]](value)
8: withVisible(function_list[[k]](value))
7: freduce(value, `_function_list`)
6: `_fseq`(`_lhs`)
5: eval(quote(`_fseq`(`_lhs`)), env, env)
4: eval(quote(`_fseq`(`_lhs`)), env, env)
3: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
2: dat %>% mutate_if(grepl("*M$", names(.)), funs(moex))
1: get_acs(variables = c("B16008_002", "B19013_001", "B07401_001",
"B13002_002", "B24121_255"), geometry = TRUE, geography = "state",
output = "wide")
from tidycensus.
Works on a Debian 9 machine so seems to be a local Arch problem.
from tidycensus.
Related Issues (20)
- 2022 ACS will require 2023 TIGER geometries for congressional districts HOT 3
- Need to update `geography` column for 2018-2022 ACS variables
- get_acs() - Is there a limit of ZCTAs one can pass for the zcta argument given geography="zcta"? HOT 1
- "dp" dataset not working HOT 2
- Clarify replicate weights method for pums data HOT 3
- "HISP" breakdown labels in `get_estimates(geography = "state")` return miscoded HOT 2
- `puma` argument not working with 5-year 2018-2022 ACS PUMS HOT 7
- get_pums and/or Census API issue HOT 4
- Add documentation to load_variables() about datasets
- geography column empty for load_variables() for 2022 ACS 5-year estimate variables HOT 1
- return_vacant and 'VACS' variable not working for get_pums HOT 4
- Failed with error: ‘lazy-load database 'C:/R/win-library/4.0/tidycensus/data/Rdata.rdb' is corrupt’ HOT 2
- rate_sleep() error HOT 2
- `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
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.