swi_CHnames: Swiss names

Description Usage Arguments Format Details Examples

Description

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

Usage

1
2
3
canton_CH

canton_namesStrict(query, output = "iso2")

Arguments

query

a character vector of Swiss canton names in any language

output

a character string, the ouput format

Format

An object of class data.frame with 26 rows and 23 columns.

Details

See canton_CH

Examples

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")

d-qn/swiMap documentation built on May 14, 2019, 3:04 p.m.