Description Usage Arguments Format Details Examples
Functions to convert Switzerland's cantons, districts and communes names to their abbreviations and official BFS ID TODO: expand countrycode for more languages (see in inst/ countrynames.csv )
Convert Swiss canton names to different languages and abbreviations
1 2 3 | canton_CH
canton_namesStrict(query, output = "iso2")
|
query |
a character vector of Swiss canton names in any language |
output |
a character string, the ouput format |
An object of class data.frame
with 26 rows and 23 columns.
See canton_CH
1 2 3 4 | print(canton_CH)
canton_query <- c('Argovie', 'Appenzell Rh.-I.', 'St. Gallen', 'Zürich', 'randomChar', 'Vaudx')
canton_namesStrict(canton_query)
canton_namesStrict(canton_query, output = "english")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.