Occupations' labels and structure are exposed at the ESCO web portal. This function retrieves languages from the downloadable CSVs, see escopedia.

get_language_code(string)

Arguments

string

Filepath with a language code as given by ESCO downloadable .CSVs.

Value

A character vector with two-letter language codes.

Examples

get_language_code("occupations_en.csv")
#> [1] "en"