get_language_from_code {libbib}R Documentation

Conversion from language code to language name

Description

Takes a language code (defined in the Marc standards) and returns the language name.

Usage

get_language_from_code(x)

Arguments

x

A language code (defined in the Marc standards) or a vector of language codes

Value

Returns the language name. NA if cannot be matched to language in standard.

Examples


get_language_from_code("yor")
# Yoruba

# tolerant of case and leading/trailing whitespace
get_language_from_code(c("yor", " SPA ", "not-a-language", "nah", NA))
# c("Yoruba", "Spanish", NA, "Nahuatl", NA)


[Package libbib version 1.6.4 Index]