ots_country_code {tradestatistics} | R Documentation |
Takes a text string and searches within the package data for a country code in the context of valid API country codes.
ots_country_code(countryname = NULL)
countryname |
A text string such as "Chile", "CHILE" or "CHL". |
A single character if there is a exact match (e.g.
ots_country_code("Chile")
) or a tibble in case of multiple matches
(e.g. ots_country_code("Germany")
)
ots_country_code("Chile ")
ots_country_code("america")
ots_country_code("UNITED STATES")
ots_country_code(" united_")