Return the country codes associated with a language

country_codes(id)

Arguments

id

Language's WALS ID, or a vector of IDs

Value

A list of character vectors

Examples

country_codes("fre")
#> $fre #> [1] "FR" "CH" #>
unlist(country_codes("fre"))
#> fre1 fre2 #> "FR" "CH"
country_codes(c("fre", "ger"))
#> $fre #> [1] "FR" "CH" #> #> $ger #> [1] "AT" "DE" "CH" #>