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

Read multilingual files #9

Open
RPanczak opened this issue Aug 24, 2021 · 2 comments
Open

Read multilingual files #9

RPanczak opened this issue Aug 24, 2021 · 2 comments

Comments

@RPanczak
Copy link

Hi @cjgb

Many thanks for super useful package!

Is there a way to define which language of the file to use?

I'm working with file from BfS that comes in German but has support for three other languages. Is there a way to specify which one to use during the read?

image

PS This might be related to #8

@ofurkusi
Copy link

ofurkusi commented Dec 3, 2021

This doesn't seem to be possible at the moment. However, there is a fork of this project where this has been implemented.
See here: uthink-git@6636c1d

Perhaps this change could be incorporated?

@lgnbhl
Copy link

lgnbhl commented Aug 4, 2023

@RPanczak to get BFS data in multiple languages you can also use the {BFS} R package.

As the dataset is very large, you need to query specific elements of the data (below by spatial level and gender for example) due to limitation of the PXWeb API. The full documentation is here: https://felixluginbuhl.com/BFS/

library(BFS) #install.packages("BFS")

BFS::bfs_get_data(
  number_bfs = "px-x-0102020206_102",
  language = "en",
  query = list(
    "Jahr" = "2010", 
    "Kanton (-) / Bezirk (>>) / Gemeinde (......)" = "*", 
    "Geschlecht" = "*"
    )
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants