ots_industry_code: String matching of industry names and IDs

View source: R/ots_strings_processing.R

ots_industry_codeR Documentation

String matching of industry names and IDs

Description

Takes a text string and searches within the package data for all matching industry IDs in the context of valid API industry codes.

Usage

ots_industry_code(industry = NULL)

Arguments

industry

A text string such as "Wheat", "CEREAL" or "oilseed".

Value

A data frame with all possible matches (no uppercase distinction) showing the industry name and industry ID.

Examples

ots_industry_code("Wheat")
ots_industry_code("cereal")

tradestatistics documentation built on July 21, 2026, 5:09 p.m.