get_productcode: Obtain a valid product codes

Description Usage Arguments Value Examples

Description

This function takes a text string and searches within the package data for all matching product codes in the context of valid API product codes.

Usage

1
get_productcode(productname = "animals")

Arguments

productname

A text string such as "Animals", "COPPER" or "fruits".

Value

A tibble with all possible matches (no uppercase distinction) showing the product name, product code and corresponding trade classification (e.g. HS92 or SITC)

Examples

1
get_productcode("animals")

pachamaltese/oec-r-package documentation built on May 10, 2019, 9:52 a.m.