Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when downloading specific dataset using od_table() #43

Open
DavidZenz opened this issue Feb 20, 2024 · 1 comment
Open

Error when downloading specific dataset using od_table() #43

DavidZenz opened this issue Feb 20, 2024 · 1 comment
Assignees
Labels
bug Something isn't working question Further information is requested

Comments

@DavidZenz
Copy link

Describe the bug
od_table() throws an error when trying to download dataset OGD__steuer_lst_ab_2008_4_LST_4 , whereas all other available datasets discovered with od_list() worked.

To Reproduce

od_table("OGD__steuer_lst_ab_2008_4_LST_4")
Fehler in `$<-.data.frame`(`*tmp*`, "parsed", value = NA_character_) : 
  Ersetzung hat 1 Zeile, Daten haben 0

Expected behavior
I expected to get the corresponding R6-class object, e.g.

od_table("OGD__steuer_lst_ab_2008_2_LST_2")
Wage Tax Statistics from 2008: Extent of Employment, Sex and Economic Activities

Dataset: OGD__steuer_lst_ab_2008_2_LST_2 (data.statistik.gv.at)
Measures: Number of entities (= persons) subject to wage tax, Gross total income (EUR), Other income according to §67 par. 1-2 (EUR), Entity count: Other
  income according to §67 par. 1-2, Other income according to §67 par. 3-8 with fixed tax rate (EUR), Entity count: Other income according to §67 par. 3-8 with
  fixed tax rate, NTSONST (nach Tarif versteuerte sonstige Bezüge) (EUR), Z_NTSONST (Fallzahl NTSONST), LFBEZ (laufende Bezüge inkl. KZ220) (EUR), Z_LFBEZ
  (Fallzahl LFBEZ), … (48 more)
Fields: Year <15>, Gender <2> <2>, Duration of income <2> <2>, ÖNACE 2008 Abteilungen (2-Steller) <89> [teilw. ABO] (Ebene +1) <22>

Request: [2024-02-20 14:09:45.180562]
STATcubeR: 0.5.0 (@4537d3e)

Environment

> sessioninfo::session_info()
─ Session info ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 setting  value
 version  R version 4.3.0 (2023-04-21)
 os       Debian GNU/Linux 10 (buster)
 system   x86_64, linux-gnu
 ui       RStudio
 language (EN)
 collate  de_AT.UTF-8
 ctype    de_AT.UTF-8
 tz       Europe/Vienna
 date     2024-02-20
 rstudio  2023.12.1+402 Ocean Storm (server)
 pandoc   NAPackages ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 package     * version  date (UTC) lib source
 arrow       * 13.0.0.1 2023-09-22 [1] CRAN (R 4.3.0)
 assertthat    0.2.1    2019-03-21 [2] CRAN (R 4.0.3)
 bit           4.0.5    2022-11-15 [1] CRAN (R 4.3.0)
 bit64         4.0.5    2020-08-30 [2] CRAN (R 4.0.3)
 cli           3.6.2    2023-12-11 [1] CRAN (R 4.3.0)
 colorspace    2.1-0    2023-01-23 [1] CRAN (R 4.3.0)
 crayon        1.5.2    2022-09-29 [1] CRAN (R 4.3.0)
 curl          5.2.0    2023-12-08 [1] CRAN (R 4.3.0)
 data.table  * 1.15.0   2024-01-30 [1] CRAN (R 4.3.0)
 dplyr       * 1.1.4    2023-11-17 [1] CRAN (R 4.3.0)
 fansi         1.0.6    2023-12-08 [1] CRAN (R 4.3.0)
 forcats     * 1.0.0    2023-01-29 [1] CRAN (R 4.3.0)
 fs            1.6.3    2023-07-20 [1] CRAN (R 4.3.0)
 generics      0.1.3    2022-07-05 [1] CRAN (R 4.3.0)
 ggplot2     * 3.4.4    2023-10-12 [1] CRAN (R 4.3.0)
 glue          1.7.0    2024-01-09 [1] CRAN (R 4.3.0)
 gtable        0.3.4    2023-08-21 [1] CRAN (R 4.3.0)
 here          1.0.1    2020-12-13 [2] CRAN (R 4.2.1)
 hms           1.1.3    2023-03-21 [1] CRAN (R 4.3.0)
 httr          1.4.7    2023-08-15 [1] CRAN (R 4.3.0)
 jsonlite      1.8.8    2023-12-04 [1] CRAN (R 4.3.0)
 lifecycle     1.0.4    2023-11-07 [1] CRAN (R 4.3.0)
 lubridate   * 1.9.3    2023-09-27 [1] CRAN (R 4.3.0)
 magrittr      2.0.3    2022-03-30 [1] CRAN (R 4.3.0)
 munsell       0.5.0    2018-06-12 [1] CRAN (R 4.3.0)
 pillar        1.9.0    2023-03-22 [1] CRAN (R 4.3.0)
 pkgconfig     2.0.3    2019-09-22 [2] CRAN (R 4.0.3)
 pkgload       1.3.4    2024-01-16 [1] CRAN (R 4.3.0)
 purrr       * 1.0.2    2023-08-10 [1] CRAN (R 4.3.0)
 R6            2.5.1    2021-08-19 [1] CRAN (R 4.3.0)
 readr       * 2.1.5    2024-01-10 [1] CRAN (R 4.3.0)
 remotes       2.4.2.1  2023-07-18 [1] CRAN (R 4.3.0)
 rlang         1.1.3    2024-01-10 [1] CRAN (R 4.3.0)
 rprojroot     2.0.4    2023-11-05 [1] CRAN (R 4.3.0)
 rstudioapi    0.15.0   2023-07-07 [1] CRAN (R 4.3.0)
 rvest       * 1.0.3    2022-08-19 [2] CRAN (R 4.2.1)
 scales        1.3.0    2023-11-28 [1] CRAN (R 4.3.0)
 selectr       0.4-2    2019-11-20 [2] CRAN (R 4.2.1)
 sessioninfo   1.2.2    2021-12-06 [1] CRAN (R 4.3.0)
 STATcubeR   * 0.5.0    2023-06-12 [1] Github (statistikat/STATcubeR@4537d3e)
 stringi       1.8.3    2023-12-11 [1] CRAN (R 4.3.0)
 stringr     * 1.5.1    2023-11-14 [1] CRAN (R 4.3.0)
 tibble      * 3.2.1    2023-03-20 [1] CRAN (R 4.3.0)
 tidyjson      0.3.2    2023-01-07 [1] CRAN (R 4.3.0)
 tidyr       * 1.3.1    2024-01-24 [1] CRAN (R 4.3.0)
 tidyselect    1.2.0    2022-10-10 [1] CRAN (R 4.3.0)
 tidyverse   * 2.0.0    2023-02-22 [1] CRAN (R 4.3.0)
 timechange    0.3.0    2024-01-18 [1] CRAN (R 4.3.0)
 tzdb          0.4.0    2023-05-12 [1] CRAN (R 4.3.0)
 utf8          1.2.4    2023-10-22 [1] CRAN (R 4.3.0)
 vctrs         0.6.5    2023-12-01 [1] CRAN (R 4.3.0)
 withr         3.0.0    2024-01-16 [1] CRAN (R 4.3.0)
 xml2          1.3.6    2023-12-04 [1] CRAN (R 4.3.0)

 [1] /home/zenz/R/x86_64-pc-linux-gnu-library/4.3
 [2] /usr/local/lib/R/site-library
 [3] /usr/lib/R/site-library
 [4] /usr/lib/R/library

──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
@DavidZenz DavidZenz added the bug Something isn't working label Feb 20, 2024
@bernhard-da
Copy link
Collaborator

@DavidZenz thx for reporting. It looks to me as if this is not really an issue withstatCubeR but that the .csv that is used (https://data.statistik.gv.at/data/OGD__steuer_lst_ab_2008_4_LST_4.csv) is empty. I am already in touch with the persons responsible for this dataset and hope that the file will be available soon.

@bernhard-da bernhard-da added the question Further information is requested label Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants