powered by
Takes a country code (defined in the Marc standards) and returns the country name.
get_country_from_code(x)
Returns the country (place) name. NA if cannot be matched to country in standard.
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
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)")
Run the code above in your browser using DataLab