Takes a text string and searches within the package data for all matching product codes in the context of valid API product codes.
ots_product_code(productname = NULL, productgroup = NULL)
A text string such as "Animals", "COPPER" or "fruits".
A text string such as "meat", "FISH" or "Dairy".
A tibble with all possible matches (no uppercase distinction) showing the product name and product code
# NOT RUN { ots_product_code(productname = "ANIMALS ") ots_product_code(productgroup = " fish") ots_product_code(productname = "Milk", productgroup = "Dairy") # }
Run the code above in your browser using DataLab