isPrimary: This function tests whether a commodity is a primary item.

Description Usage Arguments Value

Description

HACK (Michael): This is a hack from Josh, a list should be provided.

Usage

1
isPrimary(itemCode, primaryPattern = "^0")

Arguments

itemCode

The item code to be tested

primaryPattern

The regular expression pattern corresponds to primary commodities.

Value

logical, whether the item is a primary commodity


ncwanner/Production_Validation documentation built on May 8, 2019, 1:48 p.m.