View source: R/ots_strings_processing.R
ots_commodity_code | 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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.