Skip to contents

Takes any vector of countries and returns languages.

Usage

lang.country(x, list = TRUE)

Arguments

x

character vector of the countries (in alpha-2 ISO codes)

list

logical. If TRUE, it returns a list of languages, if FALSE it returns a named vector.

Author

George Moroz <agricolamz@gmail.com>

Examples

lang.country('AD')
#> $AD
#> [1] "Catalan"    "Occitan"    "Spanish"    "Portuguese" "French"    
#> 
lang.country(c('AD', 'AE'))
#> $AD
#> [1] "Catalan"    "Occitan"    "Spanish"    "Portuguese" "French"    
#> 
#> $AE
#> [1] "Soqotri"         "Standard Arabic" "Omani Arabic"    "Najdi Arabic"   
#> [5] "Gulf Arabic"     "Ru'us al-Jibal" 
#>