powered by
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)
A tibble with all possible matches (no uppercase distinction) showing the commodity name and commodity code
A text string such as "Animals", "COPPER" or "fruits".
A text string such as "meat", "FISH" or "Dairy".
ots_commodity_code(commodity = "ANIMALS ") ots_commodity_code(section = " fish") ots_commodity_code(commodity = "Milk", section = "Dairy")
Run the code above in your browser using DataLab