View source: R/other-code-translations.R
get_country_from_code | R Documentation |
Takes a country code (defined in the Marc standards) and returns the country name.
get_country_from_code(x)
x |
A country code (defined in the Marc standards) or a vector of country codes |
Interestingly, although it's called 'country' in the Marc standard, cities, states, and other non-countries also have codes
Returns the country (place) name. NA if cannot be matched to country in standard.
get_country_from_code("ck")
# Colombia
# tolerant of case and leading/trailing whitespace
get_country_from_code(c(" PE", "not-a-country", "nyu"))
# c("Peru", NA, "New York (State)")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.