Skip to contents

Takes any vector of languages and returns countries where those languages are used as ISO 3166-1 alpha-2 codes.

Usage

country.lang(x, full_name = TRUE)

Arguments

x

A character vector of the languages (can be written in lower case)

full_name

A logical value, whether return ISO 3166-2 codes or full names.

Author

George Moroz <agricolamz@gmail.com>

Examples

country.lang('Korean')
#>                                 Korean 
#> "China;South Korea;North Korea;Russia" 
country.lang(c('Korean', 'Polish'))
#>                                          Korean 
#>          "China;South Korea;North Korea;Russia" 
#>                                          Polish 
#> "Belarus;Czech;Germany;Lithuania;Poland;Russia"