Skip to contents

Convert between full canton names and their two-letter abbreviations

Usage

convert_canton_names(cantons)

Arguments

cantons

The full names or two-letter abbreviations of the cantons to be converted. A character vector.

Value

A character vector.

Examples

swissevote::convert_canton_names(c("ZH", "VD", "AG"))
#> [1] "Zurich"  "Vaud"    "Argovia"
swissevote::convert_canton_names(c("Zurich", "Vaud", "Argovia"))
#> [1] "ZH" "VD" "AG"
swissevote::convert_canton_names(c("ZH", "Vaud", "Argovia"))
#> [1] "Zurich" "VD"     "AG"