ots_sector_code: String matching of broad sector names and IDs

View source: R/ots_strings_processing.R

ots_sector_codeR Documentation

String matching of broad sector names and IDs

Description

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

Usage

ots_sector_code(sector = NULL)

Arguments

sector

A text string such as "Agriculture", "MINING" or "serv".

Value

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

Examples

ots_sector_code("Agriculture")
ots_sector_code("mining")

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