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

German decimal commas get erased, making data unusable #22

Open
wahlatlas opened this issue Jan 10, 2024 · 1 comment
Open

German decimal commas get erased, making data unusable #22

wahlatlas opened this issue Jan 10, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@wahlatlas
Copy link

In english gen_table returns consumer price index correctly as 61.9, whereas with german language setting the decimal comma gets erased, resulting in 619 for the same statistic where the API returns 61,9 respectively:

> inflation_en <- gen_table("61111-0001", language="en")
> inflation_de <- gen_table("61111-0001", language="de")
> select(inflation_en, 5, 10:11)
    time `PREIS1__Consumer_price_index__2020=100` PREIS1__CH0004
   <dbl>                                    <dbl> <chr>         
 1  1991                                     61.9 .             
 2  1992                                     65   +5.0          
 3  1993                                     67.9 +4.5          
 4  1994                                     69.7 +2.7          
 5  1995                                     71   +1.9          
 6  1996                                     72   +1.4          
 7  1997                                     73.4 +1.9          
 8  1998                                     74   +0.8          
 9  1999                                     74.5 +0.7          
10  2000                                     75.5 +1.3     
> select(inflation_de, 5, 10:11)
    Zeit `PREIS1__Verbraucherpreisindex__2020=100` PREIS1__CH0004
   <dbl>                                     <dbl> <chr>         
 1  1991                                       619 .             
 2  1992                                       650 +5,0          
 3  1993                                       679 +4,5          
 4  1994                                       697 +2,7          
 5  1995                                       710 +1,9          
 6  1996                                       720 +1,4          
 7  1997                                       734 +1,9          
 8  1998                                       740 +0,8          
 9  1999                                       745 +0,7          
10  2000                                       755 +1,3
@yannikbuhl
Copy link
Collaborator

Thank you so much for raising our awareness for this. The issue will get fixed in an upcoming release.

@yannikbuhl yannikbuhl added the bug Something isn't working label Feb 14, 2024
@yannikbuhl yannikbuhl self-assigned this Feb 14, 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
Projects
None yet
Development

No branches or pull requests

2 participants