ots_commodity_code {tradestatistics} | R Documentation |
Takes a text string and searches within the package data for all matching commodity codes in the context of valid API commodity codes.
ots_commodity_code(commodity = NULL, section = NULL)
commodity |
A text string such as "Animals", "COPPER" or "fruits". |
section |
A text string such as "meat", "FISH" or "Dairy". |
A tibble with all possible matches (no uppercase distinction) showing the commodity name and commodity code
ots_commodity_code(commodity = "ANIMALS ")
ots_commodity_code(section = " fish")
ots_commodity_code(commodity = "Milk", section = "Dairy")