ofsPx_wrangle: Get the French translation from an OFS typical px data file

View source: R/ofs_px_translate.R

ofsPx_wrangleR Documentation

Get the French translation from an OFS typical px data file

Description

A highlevel wrapper that translates the column names and values from German to French. It can also fetch OFS' internal code identifiers (useful for mapping). It assumes the provided data follows a well defined structure and that it is in German

Usage

ofsPx_wrangle(px.file, langout = "fr", attachCode = "", ...)

Arguments

px.file

a string, the path to an OFS px file

langout

a string, the output language. Has to be one of fr, it, en

attachCode

a vector of strings, the column names (in the output language) for which to add the code identifiers

...

Additional arguments passed to pxR::read.px(). encoding is especially useful

Details

BFS-STAT TAB px data cubes https://www.pxweb.bfs.admin.ch/pxweb/fr/?rxid=e8ebe1b6-5756-49f0-8bfb-9eaa1cf758b2

Value

a data.frame


d-qn/tamMap documentation built on Oct. 20, 2023, 7:41 a.m.